Commit Graph

185 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
Arseny Smirnov
9fa03cbda4 Log and abort on critical binlog error
GitOrigin-RevId: 13f7b562c42cda0d5e89e522f12e4aecc2330382
2018-07-09 13:23:34 +03:00
levlam
1cf26c2eab More binlog debug.
GitOrigin-RevId: bc7b484b9f960f88edcaa61e0ba2c73596e49c82
2018-07-09 03:19:37 +03:00
levlam
e2a90b9edf Fix some string to Slice conversions.
GitOrigin-RevId: 79ddee1a90c633cc1b1df5c8e3d9917027bad0f3
2018-07-08 02:47:46 +03:00
levlam
deecdb66bc Fix some td/actor/ includes.
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
2018-07-03 22:29:04 +03:00
Arseny Smirnov
f51c0602e6 Binlog: add an assert
GitOrigin-RevId: 84ac88b0e83917d16d0f7a7e35b9abd486698f3d
2018-07-03 14:35:17 +03:00
Arseny Smirnov
4621bdaff3 Binlog: more debug
GitOrigin-RevId: ac3b87bc9650a3518d7538386820ace2c99b176f
2018-07-03 11:46:22 +03:00
levlam
ac1d7a9657 Add prefer_ipv6 option.
GitOrigin-RevId: b20e8c699e20c4fb6ec76cd53aeaeee509cd2115
2018-07-01 17:19:59 +03:00
levlam
cc359101c4 Add binlog debug.
GitOrigin-RevId: 76e5e0ee7d7d4d4e6286cea990a193eaf2597003
2018-06-30 16:10:16 +03:00
Arseny Smirnov
7fa145c33e Binlog: even more debug
GitOrigin-RevId: 99585d14e3446dc1f5c4a4a7c1ba1e2b3aeef47e
2018-06-28 20:00:11 +03:00
Arseny Smirnov
158dc49438 Binlog: more debug
GitOrigin-RevId: 8df5d8c49b702ef5bfd86819fb5904321c82049c
2018-06-28 18:21:58 +03:00
Arseny Smirnov
d22fba5603 Binlog debug
GitOrigin-RevId: 20ea6ad4fcb17af41d08ec9e00156d9267bbec15
2018-06-28 18:12:20 +03:00
Arseny Smirnov
80d4292493 BinlogHelper:: -> binlog_
GitOrigin-RevId: 94cf4585c4f61be2929c5a7cd1a3628b911bc4c5
2018-06-28 16:52:40 +03:00
levlam
46535703e0 Fix some includes.
GitOrigin-RevId: 901d167d7197e4c0222656e9fc1f9fc0e216e44b
2018-06-26 02:43:11 +03:00
levlam
62512c4db0 Remove binlog events data from the log.
GitOrigin-RevId: a3d8058e62d691671a10f8625db0afdb143fb3a8
2018-06-25 13:37:14 +03:00
levlam
ccc44e9b43 Add BinlogEventsProcessor debug.
GitOrigin-RevId: 8e452812c016071185624ba2784c34b0fe26f0c2
2018-06-25 04:07:05 +03:00
levlam
046ad3b752 Make TlStorerUnsafe buffer unsigned.
GitOrigin-RevId: 8bb19c10e4edd8b015d3a2be0449426c9c07f7df
2018-06-25 02:58:43 +03:00
levlam
744df9f511 Minor fixes.
GitOrigin-RevId: fb737b1ddcb72ce4c6393d9e282336184285dafd
2018-06-17 22:56:21 +03:00
Arseny Smirnov
251553b2e9 Add debug
GitOrigin-RevId: 63b9f09889866d9510ac951e8fc32be08615223b
2018-06-17 22:48:18 +03:00
Arseny Smirnov
69cf867d47 0xdd quick ack
GitOrigin-RevId: 3e35df493f46f91cd1cf81671819848d9640fedd
2018-06-17 20:52:40 +03:00
levlam
deed26ee04 Fix misprint.
GitOrigin-RevId: 2da88c91f4a0c9b7b342a397f04bf62592c986f2
2018-06-08 01:21:14 +03:00
Arseny Smirnov
03b674ab1c SqliteDb: use proper destroy instead of unlink
GitOrigin-RevId: 73d2d992c362c7b0c6d6f28adef56c416ec8c158
2018-06-07 22:56:03 +03:00
Arseny Smirnov
1ee7ea7acc Binlog: bugfix
GitOrigin-RevId: 4b5f62ee906b5c2ad31390a0fda457a89adc5349
2018-06-07 15:41:31 +03:00
levlam
266722112e Fix clearImportedContacts and getImportedContactCount.
GitOrigin-RevId: 295c524eab124ee19284841b2b6aa3083c850446
2018-05-25 00:37:43 +03:00
levlam
8107c838c0 Add debug.
GitOrigin-RevId: e84446bc4ebbf21f243147b3306b3b3254c7cf0c
2018-04-23 17:54:10 +03:00
levlam
a1d6be72ff Better fix for END_PARSE_FLAGS.
GitOrigin-RevId: 8838c020bb677df926fce87c0e2343600089345d
2018-04-16 18:02:42 +03:00
levlam
82820bf842 Add debug.
GitOrigin-RevId: e6efea5f211c8926b986fc40eed6ae1401322c38
2018-04-13 21:20:20 +03:00
levlam
ac8b30f6e6 Better error message.
GitOrigin-RevId: 099dc02976ede7814d0296d37c63c260652e7a8a
2018-04-02 23:11:45 +03:00
levlam
3abf2ef88e Decrease MAX_PENDING_QUERIES_DELAY from 10 to 1.
GitOrigin-RevId: 9210a816b8a2b69709c1d117bcda6682f7aedbe0
2018-03-14 14:57:43 +03:00
levlam
3823aa73e8 Fix error code.
GitOrigin-RevId: b91a357cd115be02df17a141d2c7627ad1e4f4d2
2018-03-10 17:52:27 +03:00
levlam
c2dbb601cf Fix process_config.
GitOrigin-RevId: ea657dfc621fdf13a1641377a2bef6ddd396172a
2018-03-08 18:01:45 +03:00
Arseny Smirnov
33a4d428f9 Binlog: call fsync only if it is necessary
GitOrigin-RevId: 2081799ad27c62950d029ebeb13d19f343be024d
2018-02-16 12:13:04 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
levlam
3f058aff60 Add binlog debug.
GitOrigin-RevId: 29a11dfcdc596a297f2add2a208feb57b20a06f8
2018-01-29 12:33:35 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00
Arseny Smirnov
71d03f39c3 Project import generated by Copybara.
GitOrigin-RevId: 318483224ad6164d9966f731d60cde37039bb2d4
2017-12-31 23:08:40 +03:00