YUKI Hiroshi
null+****@clear*****
Sun Nov 30 20:41:52 JST 2014
YUKI Hiroshi 2014-11-30 20:41:52 +0900 (Sun, 30 Nov 2014) New Revision: 1809282d0c911ac3380fd01a6317258a59775010 https://github.com/droonga/express-droonga/commit/1809282d0c911ac3380fd01a6317258a59775010 Message: Resolve "this" Modified files: lib/droonga-protocol/connection-pool.js Modified: lib/droonga-protocol/connection-pool.js (+4 -4) =================================================================== --- lib/droonga-protocol/connection-pool.js 2014-11-30 20:33:17 +0900 (3a6778e) +++ lib/droonga-protocol/connection-pool.js 2014-11-30 20:41:52 +0900 (e57ba9e) @@ -149,7 +149,7 @@ ConnectionPool.prototype = { '--tag=' + this._params.tag, '--priority-hosts=' + this._initialHostNames.join(',') ].join(' '); - exec(commandLine, function(error, stdin, stdout) { + exec(commandLine, (function(error, stdin, stdout) { if (error) { this._logger.error('express-droonga-report-live-engine-hosts:'); this._logger.error(stdin.trim()); @@ -159,7 +159,7 @@ ConnectionPool.prototype = { this._logger.debug('express-droonga-report-live-engine-hosts:'); this._logger.debug(result); resolve(result.liveEngineNodes); - }); + }).bind(this)); }).bind(this)); }, reJoinToInitialCluster: function() { @@ -175,14 +175,14 @@ ConnectionPool.prototype = { '--tag=' + this._params.tag, '--hosts=' + this._initialHostNames.join(',') ].join(' '); - exec(commandLine, function(error, stdin, stdout) { + exec(commandLine, (function(error, stdin, stdout) { if (error) { this._logger.error('express-droonga-join-to-cluster:'); this._logger.error(stdin.trim()); return reject(error); } resolve(); - }); + }).bind(this)); }).bind(this)); }, -------------- next part -------------- HTML����������������������������... 下載