Permalink
Browse files

Code cleanup and minor bugfixes.

  • Loading branch information...
1 parent 9b3a491 commit 163bca67a7370ce8ed3563c963b2acb491c2b1eb @spcsser spcsser committed Jan 9, 2013
Showing with 2 additions and 5 deletions.
  1. +1 −2 CacheAndBufferLayer.js
  2. +1 −1 CloneAndAtomicLayer.js
  3. +0 −2 dirty_db.js
View
@@ -92,7 +92,6 @@ exports.database = function(wrappedDB, settings, logger)
regex+="(?!"+notKey+"$)";
}
return eval("/"+regex+"/");
- //return eval("/.*/");
};
};
@@ -205,7 +204,7 @@ exports.database.prototype.findKeys = function(key, notKey, callback){
//call the garbage collector
self.gc();
- self.logger.debug("GET - " + bufferKey + " - " + JSON.stringify(value) + " - from database ");
+ self.logger.debug("GET - " + bufferKey + " - " + JSON.stringify(keyValues) + " - from database ");
callback(err,keyValues);
});
View
@@ -105,7 +105,7 @@ function doOperation (operation, callback)
}
else if(operation.type == "findKeys")
{
- operation.db.find(operation.key, operation.notKey, function(err, value)
+ operation.db.findKeys(operation.key, operation.notKey, function(err, value)
{
//clone the value
value = clone(value);
View
@@ -54,8 +54,6 @@ exports.database.prototype.findKeys = function (key, notKey, callback)
, regex=this.createFindRegex(key, notKey)
;
- console.log(regex);
-
this.db.forEach(function(key,val){
if(key.search(regex)!=-1){
keys.push(key);

0 comments on commit 163bca6

Please sign in to comment.