@nxtedition/rocksdb 7.0.58 → 7.0.59

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.
@@ -366,7 +366,7 @@ Status WalManager::RetainProbableWalFiles(VectorLogPtr& all_logs,
366
366
  }
367
367
  }
368
368
  // end could be -ve.
369
- size_t start_index = static_cast<size_t>(std::max(static_cast<int64_t>(0), end - 1));
369
+ size_t start_index = static_cast<size_t>(std::max(static_cast<int64_t>(0), end));
370
370
  // The last wal file is always included
371
371
  all_logs.erase(all_logs.begin(), all_logs.begin() + start_index);
372
372
  return Status::OK();
package/index.js CHANGED
@@ -349,7 +349,7 @@ class RocksLevel extends AbstractLevel {
349
349
  for await (const update of db[kUpdates](options)) {
350
350
  if (first) {
351
351
  if (update.sequence > options.since) {
352
- db.emit('warning', `Invalid sequence ${update.sequence} > ${options.since}. Starting from 0.`)
352
+ db.emit('warning', `Invalid update sequence ${update.sequence} > ${options.since}. Starting from 0.`)
353
353
  first = null
354
354
  break
355
355
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "7.0.58",
3
+ "version": "7.0.59",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
Binary file