YUKI Hiroshi
null+****@clear*****
Mon Nov 19 14:00:16 JST 2012
YUKI Hiroshi 2012-11-19 14:00:16 +0900 (Mon, 19 Nov 2012) New Revision: 63f9be656be4de5752e4549e9106059881493e2f https://github.com/groonga/gcs/commit/63f9be656be4de5752e4549e9106059881493e2f Log: updateVersion of index fields is an integer, not a date Modified files: lib/database/index-field.js Modified: lib/database/index-field.js (+3 -3) =================================================================== --- lib/database/index-field.js 2012-11-19 13:58:29 +0900 (f4f98ed) +++ lib/database/index-field.js 2012-11-19 14:00:16 +0900 (6482ea3) @@ -391,12 +391,12 @@ IndexField.prototype = { get updateVersion() { if (this.exists() && !this._updateVersion) - this._updateVersion = new Date(this.domain.getConfiguration(this.updateVersionKey)); - return this._updateVersion || new Date(); + this._updateVersion = this.domain.getConfiguration(this.updateVersionKey); + return this._updateVersion || 1; }, set updateVersion(value) { if (this.exists()) - this.domain.setConfiguration(this.updateVersionKey, value.getTime()) + this.domain.setConfiguration(this.updateVersionKey, value) this._updateVersion = value; return value; }, -------------- next part -------------- HTML����������������������������...Download