Commit Graph

85 Commits

Author SHA1 Message Date
levlam
6bacc64f3c Decrease delay before binlog is flushed to hard drive.
GitOrigin-RevId: 544c7722af6f89f61374c9a92566f117721758f7
2019-03-31 22:31:43 +03:00
levlam
99ba887334 Silently truncate zero bytes at the end of encrypted binlog.
GitOrigin-RevId: 88a18a4aaf3cbfa5907ce7b50d82f871836d6281
2019-03-11 17:56:03 +03:00
levlam
58f63d36d6 Fix includes.
GitOrigin-RevId: d633dc842591cd28a03f9fba6974a171926ed229
2019-02-22 23:15:43 +03:00
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
dd398c5968 Fix formatting.
GitOrigin-RevId: 144f91ea1ad0a1f9a8e5e08c4c10f238b066be47
2019-02-13 00:28:47 +03:00
levlam
9b42166c68 Explicitly include common.h.
GitOrigin-RevId: 5ae32c18d0ff18aac36334b494ea526ce7da4a9a
2019-02-13 00:26:36 +03:00
Arseny Smirnov
20bfcaa979 Use LOG_CHECK where it is necessary
GitOrigin-RevId: a8bd17cc2ee6e43dcea52bb25aef9ee1f91c7ec4
2019-02-12 19:17:20 +03:00
levlam
130b49a524 Various include and other fixes.
GitOrigin-RevId: 68e03e0636cd4cff3e6fa876342ba16453630f15
2019-02-12 19:48:52 +03:00
levlam
2edc069583 Explicitly init some std::atomic.
GitOrigin-RevId: bfbe95bd1aaed9c3ade31d9a7222b223bfece347
2019-01-24 06:18:14 +03:00
levlam
424faa44f3 Use KeyValueSyncInterface and BinlogInterface in TdDb.
GitOrigin-RevId: 6e038ac9124855660da72fc64ec131a6e8211055
2019-01-07 02:44:29 +03:00
levlam
a2a7b44ad6 Use KeyValueSyncInterface in ConfigShared.
GitOrigin-RevId: 8670b43b1dc9d5619fee2081aa98ddc936820c64
2019-01-07 01:58:09 +03:00
levlam
8e822fd44f Minor interface change.
GitOrigin-RevId: 1ab4e9a57714911fa6f88440b7ded136e6eea83f
2019-01-07 00:06:52 +03:00
levlam
5438119bb4 Fix Global.h and TdDb.h includes.
GitOrigin-RevId: 89fa1ee3e8071ad3f27687f79d1a52de113f9705
2019-01-06 22:59:17 +03:00
levlam
ea06aa19d6 Forward-declare BinlogEvent.
GitOrigin-RevId: 4ea183c04ec8e5ffd0c2851db399b2a2155557ea
2019-01-06 22:11:02 +03:00
levlam
b155cfe645 Output more debug on Binlog corruption.
GitOrigin-RevId: faae21038add485d80c668e2dd4317710daeb566
2019-01-02 18:21:31 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
b676fe509a Move UInt to UInt.h
GitOrigin-RevId: 52b6d36d1ece8c267f5548000b2592ffd3a62ded
2018-12-20 00:18:53 +03:00
levlam
e586b31a87 Add support for notifications about new calls.
GitOrigin-RevId: fc4f9c1a484832241f2059a1ec58af6e5abcb198
2018-12-18 23:59:35 +03:00
levlam
9d3ab75c56 Fix some spelling.
GitOrigin-RevId: 351e7c32fee3fb9249d561434ba1515082e757b0
2018-12-14 01:48:36 +03:00
levlam
2c6bd673c7 Use as_slice<Int> if possible.
GitOrigin-RevId: 931b5609e2eae0d5655287e84a71724f07d4090c
2018-11-06 19:00:03 +03:00
levlam
28bfa4c4a6 Fix some MSVC Analyzer warnings.
GitOrigin-RevId: f62e8173ae9a5b78818f6575548ce22d4aa5c51d
2018-10-26 17:11:20 +03:00
levlam
8e11f8ff1b Add debug.
GitOrigin-RevId: 68545a71066ca1f6b2a87e2da0f3632655a7f006
2018-10-25 01:37:43 +03:00
levlam
f5ea140bc2 Update clang-format to 8.0.
GitOrigin-RevId: 170be47e4b47607a2bca81d2ed6b5b3d547982ca
2018-10-14 04:01:02 +03:00
levlam
872cf6e10d Add local locking to FileFd::lock.
GitOrigin-RevId: 4ad3e15f9952b1c68c879182a0f10dd5cad270f3
2018-10-08 21:18:06 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
900eab129b Make Binlog helper template functions non-static.
GitOrigin-RevId: db82e3468f8bf3e1bd0835721c57a72c97a0b859
2018-09-19 01:35:45 +03:00
levlam
fc0cbae579 Fix some includes.
GitOrigin-RevId: 9b36a638202fb8b34e13494efd6b4a48ff7f4845
2018-09-10 04:08:15 +03:00
levlam
fd90bf435e A lot of fixes.
GitOrigin-RevId: c7c16991da51e09a685537a444385852e8e93af4
2018-09-07 03:41:21 +03:00
Arseny Smirnov
180de003a6 IOCP: pass tests under windows
GitOrigin-RevId: bbb13f722c911609e7cf120e7a06e02eb13c616f
2018-08-17 12:19:21 +03:00
Arseny Smirnov
8a28e4b461 Almost compiles
GitOrigin-RevId: aad536022caddba0446a761e7ab1f3b4ac64f53b
2018-08-14 10:42:40 +03:00
levlam
7c145a412b Custom language packs support.
GitOrigin-RevId: e7f76319dae5be3e20f81b41a0226e5f96f91ba1
2018-08-06 17:22:22 +03:00
levlam
2a50835118 Change error message.
GitOrigin-RevId: 731888bdff7bf4efc0985bcdcf59954eee605d9d
2018-07-23 21:46:05 +03:00
levlam
3d7c4426f6 Fix failed SqliteKeyValue::init_with_connection.
GitOrigin-RevId: bc0f07ac305706824dffe178ff8d5262f8ced28e
2018-07-22 03:00:45 +03:00
levlam
e9568c9a8e Add SqliteKeyValue.cpp.
GitOrigin-RevId: d0490b00c3342db191a29e7780d3292e3b593896
2018-07-22 02:56:40 +03:00
levlam
a2d725f484 Fix calls to init and drop in SqliteKeyValue.
GitOrigin-RevId: f7a57b0f0e422c509ec11f71780d338300c3a17e
2018-07-22 02:11:38 +03:00
levlam
3afcad7a5e Move BinlogEvent::create_raw implementation to cpp.
GitOrigin-RevId: 1e68c4d39044e6563c481d05a1bb1eb341b61c7c
2018-07-22 01:03:21 +03:00
levlam
e8f4c31586 Open language database.
GitOrigin-RevId: 9765471da4bae835d7159ca90aa99106a251b654
2018-07-20 20:50:38 +03:00
levlam
92c04286e3 Add language_pack_database option.
GitOrigin-RevId: 99f4b3f75f396d5b25287f4a98bae2dfdda9df00
2018-07-20 16:15:19 +03:00
levlam
f25bcd8d70 Remove unnecessary semicolons after namespace end.
GitOrigin-RevId: bf290001b072fd390fe2cada06722a3b90309cca
2018-07-18 04:30:29 +03:00
levlam
46ebd1b240 Include SqliteKeyValue only in cpp.
GitOrigin-RevId: b89c988f6da1d480f68ecb71ef5390e9376faac1
2018-07-18 04:11:48 +03:00
levlam
5c53ea34f8 Add some TD_WARN_UNUSED_RESULT.
GitOrigin-RevId: ba78294b97950402b2e77f942e21b19b2f2b7199
2018-07-18 00:41:26 +03:00
levlam
b0a2564b97 Fix formatting of foreach function.
GitOrigin-RevId: de355b5e5877428c75a167f4bff1e2514b5e0577
2018-07-17 23:08:38 +03:00
levlam
b0dfc088ae Fix CE.
GitOrigin-RevId: 6117160e2ee0045bb0c7dc8e3e048a5aae2626f1
2018-07-17 16:49:57 +03:00
levlam
1aa94575e8 Minor fixes.
GitOrigin-RevId: 33b0f159e7003d7b9dce28033a7e90169a9421bc
2018-07-17 14:27:24 +03:00
levlam
c49862898b Output more details when truncating binlog.
GitOrigin-RevId: 372ba8cabd61cf32f931d7ca7a3bf0f5febd4127
2018-07-17 00:49:25 +03:00
Arseny Smirnov
7e71d12423 Binlog: truncate on read error
GitOrigin-RevId: 061fbfbe92470dca2f7282842993b1bea132872b
2018-07-16 13:07:00 +03:00
levlam
f87974fa0b Remove some outdated TODO.
GitOrigin-RevId: 77e1903177bbb83834c86391ec10deb7b4de4e47
2018-07-14 01:40:18 +03:00
Arseny Smirnov
b252fe15ff Binlog: reader bugfix
GitOrigin-RevId: 38271e40782e52d0ab20e74d98d10fc4045ac0c0
2018-07-13 14:42:03 +03:00
levlam
608ff3f45a Better map::emplace usage.
GitOrigin-RevId: 02c7f1cb60ba77c5515e80b988f815ce8a356e11
2018-07-10 03:38:17 +03:00
Arseny Smirnov
9fd6ea8502 Validate binlog event just before a write
GitOrigin-RevId: cea03381299348b0c33af5f963ff24cb97f1e6e1
2018-07-09 13:48:22 +03:00