@nxtedition/rocksdb 7.0.1 → 7.0.2

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
@@ -1154,9 +1154,14 @@ struct GetManyWorker final : public Worker {
1154
1154
  statuses_.resize(keys.size());
1155
1155
  values_.resize(keys.size());
1156
1156
 
1157
- database.db_->MultiGet(readOptions, column_, keys.size(), keys.data(), values_.data(), statuses_.data());
1157
+ // database.db_->MultiGet(readOptions, column_, keys.size(), keys.data(), values_.data(), statuses_.data());
1158
1158
 
1159
- for (auto status : statuses_) {
1159
+ // TODO (fix): Use MultiGet once https://github.com/facebook/rocksdb/issues/10186 is resolved.
1160
+ for (auto n = 0; n < keys.size(); ++n) {
1161
+ statuses_[n] = database.db_->Get(readOptions, column_, keys[n], &values_[n]);
1162
+ }
1163
+
1164
+ for (const auto& status : statuses_) {
1160
1165
  if (!status.ok() && !status.IsNotFound()) {
1161
1166
  return status;
1162
1167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
Binary file