Skip to content
Snippets Groups Projects
Commit 6834e6bc authored by Chris Larsen's avatar Chris Larsen
Browse files

Merge pull request #734 from hooklift/master

[bigtable] Bigtable uses 1ms granularity.
parents 76e44c3c 14399c90
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,9 @@ public class GoogleBigtableClient extends com.yahoo.ycsb.DB {
setCellBuilder.setFamilyNameBytes(ByteStringer.wrap(columnFamilyBytes));
setCellBuilder.setColumnQualifier(ByteStringer.wrap(entry.getKey().getBytes()));
setCellBuilder.setValue(ByteStringer.wrap(entry.getValue().toArray()));
setCellBuilder.setTimestampMicros(System.nanoTime() / 1000);
// Bigtable uses a 1ms granularity
setCellBuilder.setTimestampMicros(System.currentTimeMillis() * 1000);
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment