@nxtedition/rocksdb 7.0.35 → 7.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.cc CHANGED
@@ -976,7 +976,7 @@ struct UpdatesNextWorker final : public rocksdb::WriteBatch::Handler, public Wor
976
976
 
977
977
  NAPI_STATUS_RETURN(napi_get_null(env, &argv[0]));
978
978
 
979
- if (cache_.empty()) {
979
+ if (count_ == -1) {
980
980
  return CallFunction(env, callback, 1, argv);
981
981
  }
982
982
 
@@ -1068,7 +1068,7 @@ struct UpdatesNextWorker final : public rocksdb::WriteBatch::Handler, public Wor
1068
1068
  return rocksdb::Status::OK();
1069
1069
  }
1070
1070
 
1071
- cache_.emplace_back("put");
1071
+ cache_.emplace_back("merge");
1072
1072
 
1073
1073
  if (updates_->keys_) {
1074
1074
  cache_.emplace_back(key.ToStringView());
@@ -1103,7 +1103,7 @@ struct UpdatesNextWorker final : public rocksdb::WriteBatch::Handler, public Wor
1103
1103
  bool Continue() override { return true; }
1104
1104
 
1105
1105
  private:
1106
- size_t count_;
1106
+ int64_t count_ = -1;
1107
1107
  std::vector<std::optional<std::string>> cache_;
1108
1108
  Updates* updates_;
1109
1109
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "7.0.35",
3
+ "version": "7.0.36",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",