Commit Graph

250 Commits

Author SHA1 Message Date
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
levlam
ef7ccc020a Remove SeqNo from SqliteKeyValue. 2021-12-12 15:41:06 +03:00
levlam
42aadccc8b Fix warning. 2021-12-07 13:10:30 +03:00
levlam
e740f5f86c Try a few times to find the new binlog after renaming it. This could help on some virtual file systems like /mnt directory on WSL 2.0. 2021-12-06 13:58:11 +03:00
levlam
a6c0902ad7 Silence g++ warnings. 2021-12-01 16:01:27 +03:00
levlam
e7dfed10a5 Increase performance warning time to a reasonable value. 2021-11-17 09:07:23 +03:00
levlam
43855f0ce4 Improve error message. 2021-11-14 10:07:04 +03:00
levlam
b731414d42 Init some fields just in case. 2021-11-11 17:39:09 +03:00
levlam
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
levlam
1e49f6dc13 Use auto as variable type if it is initialized with a cast. 2021-10-20 01:27:02 +03:00
levlam
44a186c7c1 Minor improvements. 2021-10-18 19:26:14 +03:00
levlam
b34cfef4d0 Replace begin_transaction with begin_read_transaction and begin_write_transaction. 2021-10-07 13:18:00 +03:00
levlam
91f7d06282 Improve error message. 2021-09-25 21:25:51 +03:00
levlam
23f585caf0 Unify set SQLite PRAGMAs. 2021-09-23 11:20:42 +03:00
levlam
626caad19a Create database before attaching it. 2021-09-22 20:17:37 +03:00
levlam
a0cc1be3e6 Add allow_creation parameter to SqliteDb::init. 2021-09-22 19:04:56 +03:00
levlam
f073c790c5 Make DbKey required to construct SqliteConnectionSafe. 2021-09-22 17:20:10 +03:00