Commit Graph

114 Commits

Author SHA1 Message Date
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
8085779cdc Update copyright year. 2022-01-01 03:35:39 +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
b731414d42 Init some fields just in case. 2021-11-11 17:39:09 +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
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
a8e8208fa6 Improve order of binlog files deletion. 2021-07-26 21:09:39 +03:00
levlam
5e9cf68df1 Add more binlog reindex debug. 2021-07-14 05:24:45 +03:00
levlam
31bc98a7bd Improve logging on failed to rename binlogs. 2021-07-13 23:46:09 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
9628668def Minor improvements. 2021-06-23 03:22:23 +03:00
levlam
a36266a764 Add BinlogKeyValue logging. 2021-06-16 05:23:22 +03:00
levlam
8db4febd4c Minor improvements. 2021-06-02 15:43:56 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
e031a2c6c1 Improve Slice::truncate usage. 2021-02-04 15:54:12 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
cb3f390a92 Unify "log event" spelling.
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
levlam
f0d1afcb7a Fix binlog closing.
GitOrigin-RevId: 3dc04b07a2d7c72e8f99f360c6b8f02cb74ce931
2020-08-16 16:48:20 +03:00
Arseny Smirnov
037bfb3776 Binlog: defragmentation of BinlogEvents buffers during reindex
GitOrigin-RevId: 89f61031d27d8aa20963a46566876a461ea3e338
2020-08-07 20:30:05 +03:00
levlam
5749ddf33d Minor fixes.
GitOrigin-RevId: 6d9a609ab9c773d1e4f3fe81f84947e142e15f35
2020-08-04 22:48:23 +03:00
Arseny Smirnov
e75860b2ae BufferSlice: stats of total BufferSlices size
GitOrigin-RevId: df712161ba00c4f3d6eae9b6459c69ee046a9bda
2020-08-04 21:37:47 +03:00
levlam
1b2d42a7b6 Improve log messages.
GitOrigin-RevId: a431f8c5bfca3edea1293d0192ac78c9aec38de2
2020-07-15 14:28:53 +03:00
levlam
060c01ace3 Minor improvements.
GitOrigin-RevId: b4e5073248377d84cb8acdf4a032970ec5cf5df9
2020-07-14 20:54:38 +03:00
Arseny Smirnov
d701e17cc6 close(Promise<>) interface for TQueue and BinlogKeyValue
GitOrigin-RevId: d2c524407888b99c9e6207f74828eb2da29a7720
2020-07-14 19:10:26 +03:00
levlam
7767842d4c Minor fixes.
GitOrigin-RevId: b9f67c5e5edf818610c1739533f01a7873e6e1b6
2020-07-14 03:37:04 +03:00
levlam
416188fc67 binlog_dump: protect from accidental binlog creation and encryption.
GitOrigin-RevId: e1e624413c7f672e90b705fb954ed3000d6170c2
2020-07-13 20:46:17 +03:00
levlam
9072b73337 Make binlog reindex more aggressive.
GitOrigin-RevId: dea08e9bd9b1679c41f5e516c26cb365bdea7562
2020-07-13 16:26:36 +03:00
levlam
15c387eff0 Improve binlog_dump output.
GitOrigin-RevId: d817f60b8228d0c6270abda41dfeed8655be5493
2020-07-13 04:04:30 +03:00
levlam
27247f278a Simplify binlog_dump.
GitOrigin-RevId: dfcc9734abc7c71f88ca9df39c3fc6725680fdec
2020-07-13 03:40:03 +03:00
Arseny Smirnov
1924d6c418 experimental binlog_dump
GitOrigin-RevId: d0e897bf2ac58dbd713d3c52b13995cb3e3c20f0
2020-07-09 22:15:37 +03:00
levlam
8872fbf6ac Fix tdutils after merge.
GitOrigin-RevId: 5b9a863e405a9e3782157570156fda71bf2bb589
2020-06-26 02:24:13 +03:00
levlam
44155da2d8 Fix BinlogEvent size checks.
GitOrigin-RevId: 0fe66f0be34fd15618c3f19edaeec5e64072c170
2020-06-11 18:21:18 +03:00
levlam
22c9927314 Minor tqueue fixes.
GitOrigin-RevId: 827a336498dd57364aa8a2ac59d97ecacb05f5de
2020-06-11 16:43:26 +03:00
levlam
b21fc85219 Add BinlogInterface::add/rewrite/erase.
GitOrigin-RevId: fdb0f4f2d2af0f8ab540c0249ddfff9b9c4af8fb
2020-06-11 02:25:50 +03:00
levlam
a726450e0b Remove unneded template parameter.
GitOrigin-RevId: 77428c1488b833d95d0ed792054a295a4c182e19
2020-06-10 22:18:22 +03:00
levlam
d8a11c7fa6 Add Binlog::add/rewrite/erase.
GitOrigin-RevId: 99b0234d5d700081834ba00c79fcc3da264344be
2020-06-10 21:48:11 +03:00
levlam
4c8571d7a1 Remove binlog_erase_impl.
GitOrigin-RevId: bfe67456d0e839266897dd2e0e386c852076d57d
2020-06-10 21:24:29 +03:00
levlam
e4bfb5bcb8 Remove IGNORE_ERASE_HACK.
GitOrigin-RevId: 7b26a5c8ad5a978c47f873f397cfa27500e8df08
2020-01-19 03:05:36 +03:00
levlam
728d8d79f6 More enum class usages.
GitOrigin-RevId: 6680ce2276ced5b015a1f508f0b7b5f28b5f4a9b
2020-01-19 03:02:56 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
1e018da7b8 Various fixes.
GitOrigin-RevId: b09e5fda6d25bd027f6bcbcbbe8324567b8ddcf8
2019-10-22 20:01:15 +03:00
levlam
918f6a0cfd Use td::contains and td::remove instead of std::find if possible.
GitOrigin-RevId: faa0863eb49ee8ce4c2138dfec022620f71d2f6a
2019-10-22 02:12:58 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
Arseny Smirnov
5a032743e6 Fix errors from tdutils import
GitOrigin-RevId: 3709df12a3050cf05e2bb482b49490a4e874f075
2019-08-12 16:53:17 +03:00