levlam
|
a6fbed2ad7
|
Reserve space for result in BinlogKeyValue::get_all().
|
2023-10-12 21:04:09 +03:00 |
|
levlam
|
7644caaf60
|
Use FlatHashMap in KeyValue.
|
2023-10-12 20:58:38 +03:00 |
|
levlam
|
28961b7d0e
|
Add more common.h includes.
|
2023-08-05 16:09:36 +03:00 |
|
levlam
|
830da27abf
|
Minor improvements.
|
2023-08-05 15:31:42 +03:00 |
|
levlam
|
0a7c87eb8b
|
Use FlatHashMap in SeqKeyValue.
|
2023-07-27 13:58:20 +03:00 |
|
levlam
|
c0911577f7
|
Use empty name for unused move constructor/assignment parameter.
|
2023-05-05 13:51:19 +03:00 |
|
levlam
|
2f006bfdfe
|
Move log message to binlog tag.
|
2023-03-20 12:51:46 +03:00 |
|
levlam
|
da2424bc64
|
Flush binlog buffer from time to time.
|
2023-03-20 00:38:20 +03:00 |
|
levlam
|
cf9d70f645
|
Improve error message.
|
2023-03-14 23:31:57 +03:00 |
|
levlam
|
f408b8cec3
|
Increase timeout for TQueue clear warning to be hardly exceeded.
|
2023-03-09 13:34:35 +03:00 |
|
levlam
|
d4646d4cd9
|
Minor improvements.
|
2023-03-06 16:59:18 +03:00 |
|
levlam
|
22fdc0258b
|
Use "receive"/"have"/"loaded" instead of "got" and other log message improvements.
|
2023-02-26 14:22:31 +03:00 |
|
levlam
|
2543d00314
|
Add erase_batch to key-values.
|
2023-02-12 03:29:19 +03:00 |
|
levlam
|
af27ba7c32
|
Return 0 from erase_batch for empty event list.
|
2023-02-12 03:18:22 +03:00 |
|
Arseny Smirnov
|
ebe93d7e4f
|
Binlog::erase_batch, TQueue:pop_batch
|
2023-02-10 15:14:14 +01:00 |
|
levlam
|
1c9efb4283
|
Binlog: avoid sync on Binlog creation.
|
2023-02-10 15:21:43 +03:00 |
|
Arseny Smirnov
|
8df048c0d2
|
Use FileFd::sync_barrier in Binlog
|
2023-02-10 12:17:56 +01:00 |
|
Arseny Smirnov
|
f2ca22745a
|
Avoid std::move to itself in BinlogEventsProcessor
|
2023-02-09 22:53:04 +01:00 |
|
Arseny Smirnov
|
cde74133a6
|
Store std::string instead of BufferSlice in BinlogEvent
|
2023-02-09 22:53:02 +01:00 |
|
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 |
|