[Pkg-javascript-commits] [node-leveldown] 117/492: minor touchups
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.
commit f61d55b14853feaf425206253ba9571e8c4336ff
Author: Rod Vagg <rod at vagg.org>
Date: Sun Dec 16 14:15:06 2012 +1100
minor touchups
---
src/async.cc | 2 +-
src/levelup.cc | 3 ++-
test/benchmarks/tests/index.js | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/async.cc b/src/async.cc
index f236514..cbf208d 100644
--- a/src/async.cc
+++ b/src/async.cc
@@ -53,5 +53,5 @@ void AsyncExecuteComplete (uv_work_t* req) {
}
void AsyncQueueWorker (AsyncWorker* worker) {
- uv_queue_work(uv_default_loop(), &worker->request, AsyncExecute, AsyncExecuteComplete);
+ uv_queue_work(uv_default_loop(), &worker->request, AsyncExecute, (uv_after_work_cb)AsyncExecuteComplete);
}
diff --git a/src/levelup.cc b/src/levelup.cc
index 84cbaa9..a6f2899 100644
--- a/src/levelup.cc
+++ b/src/levelup.cc
@@ -7,6 +7,7 @@
#include "iterator.h"
using namespace v8;
+using namespace node;
using namespace levelup;
void Init (Handle<Object> target) {
@@ -34,6 +35,6 @@ void RunCallback (Persistent<Function> callback, Local<Value> argv[], int length
callback->Call(Context::GetCurrent()->Global(), length, argv);
if (try_catch.HasCaught()) {
- node::FatalException(try_catch);
+ FatalException(try_catch);
}
}
diff --git a/test/benchmarks/tests/index.js b/test/benchmarks/tests/index.js
index 39ab272..d69a607 100644
--- a/test/benchmarks/tests/index.js
+++ b/test/benchmarks/tests/index.js
@@ -17,7 +17,7 @@ module.exports = {
, 'Leveled' : require('./put_int_string_x100000_leveled')
}
- , '=>get(int):string x 1000': {
+ , 'get(int):string x 1000': {
'LevelUP' : require('./get_int_string_x1000_levelup')
, 'LevelUP (release)' : require('./get_int_string_x1000_levelup')
, 'LevelUP (no Snappy)' : require('./get_int_string_x1000_levelup')
@@ -28,6 +28,7 @@ module.exports = {
'LevelUP' : require('./batch_int_string_x1000_levelup')
, 'LevelUP (release)' : require('./batch_int_string_x1000_levelup')
, 'LevelUP (no Snappy)' : require('./batch_int_string_x1000_levelup')
+// Leveled is currently killing the process for these batch ops
// , 'Leveled' : require('./batch_int_string_x1000_leveled')
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git
More information about the Pkg-javascript-commits
mailing list