Commit Graph

  • 7406f83953 Remove unused niceness arg Ai Lin Chia 2016-08-24 15:09:16 +02:00
  • 7d7c87238c Remove QUICKPOLL from Rdb Ai Lin Chia 2016-08-24 15:07:36 +02:00
  • 994bf3f845 Add constness Ai Lin Chia 2016-08-24 14:59:06 +02:00
  • d839302499 Code style changes, remove commented out code Ai Lin Chia 2016-08-24 14:47:42 +02:00
  • c9a22942e5 Fix includes for RdbMerge Ai Lin Chia 2016-08-24 14:43:49 +02:00
  • 1a836f6677 Remove commented out code, change goto for for loop Ai Lin Chia 2016-08-24 14:42:12 +02:00
  • 1e1a8069af Remove always false args from RdbTree::set Ai Lin Chia 2016-08-24 14:16:34 +02:00
  • be7924a17d Remove commented out code. Remove unused function Ai Lin Chia 2016-08-24 14:08:42 +02:00
  • c66dae7f6b Remove niceness/quickpoll from RdbTree Ai Lin Chia 2016-08-24 14:07:54 +02:00
  • dddeb99190 Code style changes Ai Lin Chia 2016-08-24 13:44:15 +02:00
  • 77a2daedde Remove unused m_dedup Ai Lin Chia 2016-08-24 13:43:29 +02:00
  • af48ba7e17 Remove always true dedup from Rdb::init Ai Lin Chia 2016-08-24 12:54:19 +02:00
  • c718a22dd1 Code style changes Ai Lin Chia 2016-08-24 12:51:19 +02:00
  • b0d66c7eb4 Remove always true isTreeBalanced from Rdb::init Ai Lin Chia 2016-08-24 12:51:03 +02:00
  • dcb2977f3c Remove unused m_preloadCache, m_biasDiskPageCache from Rdb Ai Lin Chia 2016-08-24 12:38:14 +02:00
  • 6470d99c1c Remove unused args from RdbBase::init Ai Lin Chia 2016-08-24 12:34:02 +02:00
  • 6ee6531adb Remove now unused g_conf.m_statsdbMaxCacheMem Ai Lin Chia 2016-08-24 12:31:43 +02:00
  • 01c655dd5b Remove unused loadFromDiskCache & pc from Rdb::init Ai Lin Chia 2016-08-24 12:30:52 +02:00
  • ac9404fea8 Remove comments, set m_index to NULL (similar to m_map) Ai Lin Chia 2016-08-24 12:25:07 +02:00
  • 230e552393 Remove unused maxCacheMem & maxCacheNodes from Rdb::init Ai Lin Chia 2016-08-24 12:24:42 +02:00
  • 78012b2a42 Remove commented out code Ai Lin Chia 2016-08-24 12:21:18 +02:00
  • 2931c9e3b5 Remove now unused maxFileSize Ai Lin Chia 2016-08-24 12:16:50 +02:00
  • 54291370a5 Pass in RdbIndex into RdbDump Ai Lin Chia 2016-08-24 12:06:06 +02:00
  • ab14ac129d Remove always true RdbDump::m_addToMap Ai Lin Chia 2016-08-24 12:05:37 +02:00
  • f25e76c5bf Code style changes Ai Lin Chia 2016-08-24 11:57:15 +02:00
  • 6ac0897c33 Remove unused RdbMerge::m_id2 Ai Lin Chia 2016-08-24 11:57:02 +02:00
  • 865024ff78 Remove unused pc & maxTargetFileSize from RdbMerge::merge Ai Lin Chia 2016-08-24 11:52:49 +02:00
  • 77313cbf15 Remove unused pc & maxFileSize for RdbDump::set Ai Lin Chia 2016-08-24 11:47:02 +02:00
  • 47a34c738e Remove unused variable from BigFile::open Ai Lin Chia 2016-08-24 11:39:41 +02:00
  • 31edc06ca7 Remove unused RdbDump::m_cache Ai Lin Chia 2016-08-24 11:36:25 +02:00
  • 2c37c0749c Code style changes Ai Lin Chia 2016-08-24 11:33:14 +02:00
  • 8b9c16ae5a Remove unused RdbDump::m_id2 Ai Lin Chia 2016-08-24 11:33:04 +02:00
  • a960675e51 Fix warning: no newline at end of file Ai Lin Chia 2016-08-24 11:21:19 +02:00
  • dd947492c7 Fix warning: comparison of unsigned expression < 0 is always false Ai Lin Chia 2016-08-24 11:19:05 +02:00
  • 5742a40228 Simplify code, change goto to for loop, code style changes Ai Lin Chia 2016-08-24 11:15:46 +02:00
  • c188269107 Code style changes Ai Lin Chia 2016-08-24 11:03:22 +02:00
  • e8e6e09e49 Code style changes Ai Lin Chia 2016-08-23 14:31:56 +02:00
  • 799b2de914 Code style changes. Modify a few goto to normal if statements. Simplify code Ai Lin Chia 2016-08-23 14:07:54 +02:00
  • 41b2f81d67 Code style changes, remove unnecessary include files from RdbDump Ai Lin Chia 2016-08-23 12:13:51 +02:00
  • 36d384d8d7 Remove always true orderedDump in RdbDump Ai Lin Chia 2016-08-23 12:01:27 +02:00
  • 5a3f11a171 Code style changes Ai Lin Chia 2016-08-23 11:54:23 +02:00
  • 23c7c542ed Code style changes & simplify code Ai Lin Chia 2016-08-23 11:51:36 +02:00
  • a32218b7cc Add comment to parameter Ai Lin Chia 2016-08-23 11:44:17 +02:00
  • 10373e7ddd Print git branch as well Ai Lin Chia 2016-08-22 17:42:57 +02:00
  • 2fe88c3de9 Remove unused RdbBase::verifyDiskPageCache Ai Lin Chia 2016-08-22 17:06:42 +02:00
  • c23a99de91 Code style changes Ai Lin Chia 2016-08-22 16:35:46 +02:00
  • 874aecbf03 Add more code to cater for saving rdb index files Ai Lin Chia 2016-08-22 16:35:27 +02:00
  • 7a7830588c Add logs for validate_rdbindex Ai Lin Chia 2016-08-19 15:27:48 +02:00
  • 6bc554c430 Remove debug logs Ai Lin Chia 2016-08-19 15:21:56 +02:00
  • 127df3593f Add code for validation of rdbindex Ai Lin Chia 2016-08-19 15:13:27 +02:00
  • 59eaee1d1c Fix compilation error Ai Lin Chia 2016-08-18 15:32:50 +02:00
  • 4ba6338553 Truncate list after calling std::unique Ai Lin Chia 2016-08-18 15:32:00 +02:00
  • 1bfd964468 First implementation of global presence index Ai Lin Chia 2016-08-18 15:05:41 +02:00
  • 315a66857b Remove unused variable Ai Lin Chia 2016-08-18 15:05:12 +02:00
  • 012cff2a7a Make sure we sort if needed to before writing to disk Brian Rasmusson 2016-08-18 11:23:29 +02:00
  • dc423fdea2 Modify goto to normal loop Ai Lin Chia 2016-08-18 11:21:43 +02:00
  • cd0857cc4e Remove commented out code Ai Lin Chia 2016-08-17 22:35:20 +02:00
  • 64e814e556 Fix more compilation error and warning Ai Lin Chia 2016-08-17 17:46:18 +02:00
  • b1d1a6de97 Fix compilation error Ai Lin Chia 2016-08-17 17:44:02 +02:00
  • 4639be504c Move add key logic into RdbIndex::addRecord Ai Lin Chia 2016-08-17 17:42:07 +02:00
  • aa599cd59d Initial implementation of generateIndex using RdbBuckets Ai Lin Chia 2016-08-17 11:53:24 +02:00
  • 67978ea2ad Fix compilation error from previous commit Ai Lin Chia 2016-08-17 11:06:40 +02:00
  • 5655484366 Tie Rdb tree/bucket index to a specific collection. First implementation of moving m_index from Rdb to RdbBase Ai Lin Chia 2016-08-17 01:21:25 +02:00
  • d7be343308 Change goto to for loop in RdbBuckets Ai Lin Chia 2016-08-17 01:18:41 +02:00
  • cce074435c Remove comments Ai Lin Chia 2016-08-17 00:54:59 +02:00
  • d9d3c44f10 Code style changes Ai Lin Chia 2016-08-16 17:45:10 +02:00
  • ae26b172e6 Use log warning instead of debug for warning logs Ai Lin Chia 2016-08-16 17:44:57 +02:00
  • 1ced04dc06 Simplify code Ai Lin Chia 2016-08-16 17:44:16 +02:00
  • a9d2cfdb2b Code style changes & log changes Ai Lin Chia 2016-08-16 15:08:26 +02:00
  • 118c5b78b9 Add placeholder to generate index from tree/bucket. Ai Lin Chia 2016-08-16 15:06:38 +02:00
  • 0c937d7863 Implement RdbIndex::readIndex Ai Lin Chia 2016-08-16 14:31:54 +02:00
  • f28e4e08bc Change size to 64bit instead of 32bit Ai Lin Chia 2016-08-16 13:43:34 +02:00
  • 8a653486f6 Fix bug in BigFile when getfd is called when part was not created Ai Lin Chia 2016-08-16 13:42:51 +02:00
  • 2742efbd36 Remove commented out code Ai Lin Chia 2016-08-16 13:41:01 +02:00
  • 8c885759ce Use LOG_WARN instead of LOG_DEBUG for warnings in Mem.cpp Ai Lin Chia 2016-08-16 12:06:15 +02:00
  • fcc7c214da Try use vector & sort every 20 million entries instead of using unordered_set Ai Lin Chia 2016-08-16 10:56:37 +02:00
  • 6109ee3e6f Use 64bit integer for BigFile instead of 32bit Ai Lin Chia 2016-08-16 10:55:55 +02:00
  • 091223b9bb Modify Mem.cpp size from int32_t to size_t Ai Lin Chia 2016-08-15 15:15:28 +02:00
  • e30dbc47f7 Handle unknown sizes by passing in a boolean instead of using -1 Ai Lin Chia 2016-08-15 14:46:49 +02:00
  • 007b5f82ba Add make target for tools directory Ai Lin Chia 2016-08-12 17:05:05 +02:00
  • 385d1f46f8 Initial commit of tool to regenerate rdb index file (for ease of testing) Ai Lin Chia 2016-08-12 17:03:05 +02:00
  • c8332b3f41 Logic to regenerate index file (not fully implemented) Ai Lin Chia 2016-08-12 17:02:12 +02:00
  • 3519a974aa Set index file to use similar name as tree/bucket saved file Ai Lin Chia 2016-08-12 17:01:16 +02:00
  • 12d7380391 Remove redundant code Ai Lin Chia 2016-08-12 17:00:34 +02:00
  • 9b41b7a614 Remove now unused RdbMap::m_generatingMap variable Ai Lin Chia 2016-08-12 12:00:01 +02:00
  • 1432836a2e Code style changes Ai Lin Chia 2016-08-12 11:59:12 +02:00
  • 0256f76c18 Remove suspicious looking code that fails addRecord once a second when there is error. Ai Lin Chia 2016-08-12 11:58:30 +02:00
  • 7a9df33cb5 Code style changes, add comments, remove redundant code Ai Lin Chia 2016-08-12 11:54:31 +02:00
  • 86d47933ee Code style changes Ai Lin Chia 2016-08-12 11:41:16 +02:00
  • 295014a131 Remove double read in RdbMap::truncateFile Ai Lin Chia 2016-08-12 11:14:24 +02:00
  • cdbebefc83 Code style changes Ai Lin Chia 2016-08-12 11:09:06 +02:00
  • 7f6fcf241b Simplify code Ai Lin Chia 2016-08-12 11:05:01 +02:00
  • e83f777bb9 Code style changes Ai Lin Chia 2016-08-12 00:44:25 +02:00
  • 349b713790 Code style changes Ai Lin Chia 2016-08-12 00:21:19 +02:00
  • e864d64b9b Add logError macro Ai Lin Chia 2016-08-11 16:46:24 +02:00
  • d8eac1acb2 Simplify code slightly. Manipulate arrays even if index file is not used. It doesn't cost that much Ai Lin Chia 2016-08-11 14:23:57 +02:00
  • f596da7871 Tracked down one source of double callback calls Ivan Skytte Jørgensen 2016-08-30 16:37:53 +02:00
  • 648103da42 steps to make intersection code clearer Brian Rasmusson 2016-08-30 15:18:21 +02:00
  • ec1bfe4040 Merge branch 'master' into nomerge2 Ivan Skytte Jørgensen 2016-08-30 15:04:33 +02:00
  • d80122290b Made Msg5::m_startKey/m_endKey private Ivan Skytte Jørgensen 2016-08-30 14:33:42 +02:00