@nxtedition/rocksdb 12.1.5 → 12.2.0
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
|
@@ -977,6 +977,7 @@ NAPI_METHOD(db_open) {
|
|
|
977
977
|
NAPI_STATUS_THROWS(GetProperty(env, options, "createIfMissing", dbOptions.create_if_missing));
|
|
978
978
|
NAPI_STATUS_THROWS(GetProperty(env, options, "errorIfExists", dbOptions.error_if_exists));
|
|
979
979
|
NAPI_STATUS_THROWS(GetProperty(env, options, "pipelinedWrite", dbOptions.enable_pipelined_write));
|
|
980
|
+
NAPI_STATUS_THROWS(GetProperty(env, options, "dailyOffpeakTime", dbOptions.daily_offpeak_time_utc));
|
|
980
981
|
|
|
981
982
|
// TODO (feat): dbOptions.listeners
|
|
982
983
|
|
|
@@ -1160,7 +1161,7 @@ NAPI_METHOD(db_get_many_sync) {
|
|
|
1160
1161
|
napi_value row;
|
|
1161
1162
|
if (statuses[n].IsNotFound()) {
|
|
1162
1163
|
NAPI_STATUS_THROWS(napi_get_undefined(env, &row));
|
|
1163
|
-
} else if (statuses[n].IsAborted()) {
|
|
1164
|
+
} else if (statuses[n].IsAborted() || statuses[n].IsTimedOut()) {
|
|
1164
1165
|
NAPI_STATUS_THROWS(napi_get_null(env, &row));
|
|
1165
1166
|
} else {
|
|
1166
1167
|
ROCKS_STATUS_THROWS_NAPI(statuses[n]);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|