Commit Graph

263 Commits

Author SHA1 Message Date
levlam
4cb164f444 Initialize all BinlogEvent fields. 2023-02-02 21:13:52 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +03:00
levlam
d6b7770561 Always initialize BinlogEvent.offset_. 2023-02-02 15:45:20 +03:00
levlam
0e58eeb5e9 Simplify BinlogEvent::init/validate. 2023-02-02 04:03:17 +03:00
levlam
882de6e8e8 Replace unsafe to maintain data_ field with get_data() method. 2023-02-02 03:08:26 +03:00
levlam
2a5f6121ef Binlog: store iv, key and key_hash in string instead of BufferSlice. 2023-02-02 00:26:12 +03:00
levlam
3d6ea2f779 Binlog: store key_salt in string instead of BufferSlice. 2023-02-01 23:46:54 +03:00
levlam
b4658f3da3 Reserve storage for deleted_log_event_ids. 2023-02-01 22:01:26 +03:00
levlam
f8372a52e3 Improve TQueue::clear logging. 2023-01-29 13:04:04 +03:00
levlam
3e5f30af70 Improve event_id variable names. 2023-01-16 12:47:37 +03:00
levlam
c8acf63e02 Delete TQueue events directly if appropriate. 2023-01-06 17:54:02 +03:00
levlam
19cde80fd1 Reduce struct RawEvent size on some compilers. 2023-01-05 23:33:15 +03:00
levlam
c4afb9283c Return all deleted events fron TQueue::clear. 2023-01-05 23:17:06 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
b0bfdd2b35 Improve setTdlibParameters errors. 2022-12-30 23:13:40 +03:00
levlam
124d0d4043 Use directly remove_event instead of pop in TQueue:clear. 2022-12-20 19:34:55 +03:00
levlam
f99fb4fc06 Delete events from callback before forgetting them in TQueue. 2022-12-20 16:37:22 +03:00
levlam
af05db3f15 Add td::Hash and use it everywhere instead of unusable std::hash. 2022-11-23 19:37:32 +03:00
levlam
b1ddf9d3a7 Minor fixes. 2022-11-23 16:32:09 +03:00
levlam
62d5ffcd86 Fix logging. 2022-11-23 01:00:29 +03:00
levlam
2849a0857b Add warning about too long TQueue clear. 2022-11-21 12:20:48 +03:00
levlam
32456872af Decrease the maximum number of kept TQueue events. 2022-11-10 21:18:13 +03:00
levlam
52aa76584a Improve TQueue::clear. 2022-11-08 17:27:02 +03:00
levlam
5945cc9b70 Add TQueue::clear. 2022-11-08 17:04:45 +03:00
levlam
ec86b34d55 Don't allow TQueue::run_gc to run for more than 50 milliseconds. 2022-10-13 16:04:24 +03:00
levlam
ec4ae065b0 Simplify TQueue::run_gc. 2022-10-13 15:22:06 +03:00
levlam
ee28a37906 Minor improvements. 2022-10-12 15:59:58 +03:00
levlam
5a29dcd337 Avoid redundant usages of Status::error(). 2022-10-09 14:15:54 +03:00
levlam
c6c8fdcb10 Improve SQLite logging. 2022-10-05 18:24:19 +03:00
levlam
515a9cfb48 Minor improvements. 2022-08-18 23:31:14 +03:00
levlam
af8042dc61 Use std::atomic for close_state. 2022-08-18 22:04:20 +03:00
levlam
6f7e775dee Ensure logical constness in TsSeqKeyValue. 2022-08-18 13:59:34 +03:00
levlam
f1c9d69077 Add TsSeqKeyValue::isset. 2022-08-17 16:52:27 +03:00
levlam
5b22effaa6 Remove unused SeqKeyValue method. 2022-08-17 16:34:21 +03:00
levlam
110ef61861 Move SQLite to namespace tdsqlite. 2022-08-04 14:37:08 +03:00
levlam
eced652ca6 Add close state to fatal error message. 2022-07-30 12:33:57 +03:00
levlam
7b8a016a9e Improve fatal error message. 2022-06-30 01:32:32 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
d06a7ddf1c Don't sync just created binlog. 2022-05-23 02:24:52 +03:00
levlam
163e739302 Add set_promises/fail_promises helper functions. 2022-04-13 17:40:12 +03:00
levlam
f2de47e5b5 Improve PerfWarningTimer logging on database opening. 2022-02-13 22:51:53 +03:00
levlam
f5d8e4de83 Use table_remove_if. 2022-02-10 12:23:52 +03:00
levlam
9e6d106585 Minor improvements. 2022-02-10 11:55:32 +03:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +03:00
levlam
22ed61e1b7 More FlatHashMap usages. 2022-02-09 17:05:27 +03:00
levlam
bcc2adeb47 Fix includes and formatting. 2022-02-08 00:04:34 +03:00
Arseny Smirnov
86bceb2972 td: replace most of std::unordered_map usages to td::FlatHashMap 2022-02-07 21:21:31 +01:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
1782b8e478 Minor improvements. 2021-12-16 16:16:34 +03:00
levlam
7bff3ed912 Add SqliteKeyValue::set_all. 2021-12-12 22:34:19 +03:00