You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/06/29 19:40:29 UTC
[17/50] [abbrv] incubator-usergrid git commit: reindex issue
reindex issue
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/b51b6680
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/b51b6680
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/b51b6680
Branch: refs/heads/USERGRID-703
Commit: b51b66806ff4fb95a9bb2bdecace1dc2e1c5e18b
Parents: 0c43c1a
Author: Shawn Feldman <sf...@apache.org>
Authored: Wed Jun 17 10:40:39 2015 -0600
Committer: Shawn Feldman <sf...@apache.org>
Committed: Wed Jun 17 10:40:39 2015 -0600
----------------------------------------------------------------------
.../src/main/java/org/apache/usergrid/rest/IndexResource.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/b51b6680/stack/rest/src/main/java/org/apache/usergrid/rest/IndexResource.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/main/java/org/apache/usergrid/rest/IndexResource.java b/stack/rest/src/main/java/org/apache/usergrid/rest/IndexResource.java
index ca3f87d..2c26fd3 100644
--- a/stack/rest/src/main/java/org/apache/usergrid/rest/IndexResource.java
+++ b/stack/rest/src/main/java/org/apache/usergrid/rest/IndexResource.java
@@ -280,12 +280,12 @@ public class IndexResource extends AbstractContextResource {
newPayload.put(UPDATED_FIELD,0);
}
- Preconditions.checkArgument(payload.get(UPDATED_FIELD) instanceof Number,
+ Preconditions.checkArgument(newPayload.get(UPDATED_FIELD) instanceof Number,
"You must specified the field \"updated\" in the payload and it must be a timestamp" );
//add our updated timestamp to the request
- if ( payload.containsKey( UPDATED_FIELD ) ) {
- final long timestamp = ConversionUtils.getLong(payload.get(UPDATED_FIELD));
+ if ( newPayload.containsKey( UPDATED_FIELD ) ) {
+ final long timestamp = ConversionUtils.getLong(newPayload.get(UPDATED_FIELD));
request.withStartTimestamp( timestamp );
}