Skip to content

Commit

Permalink
Merge pull request cockroachdb#18438 from mjibson/csv-walltime
Browse files Browse the repository at this point in the history
sqlccl: remove unused time invocation
  • Loading branch information
maddyblue authored Sep 15, 2017
2 parents 1c6b721 + 0d5e9a0 commit 4969e28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ccl/sqlccl/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ func writeRocksDB(
}

var kv engine.MVCCKeyValue
kv.Key.Timestamp.WallTime = timeutil.Now().UnixNano()
kv.Key.Timestamp.WallTime = walltime
var firstKey, lastKey roachpb.Key
var count int64
for it.Rewind(); ; it.Next() {
Expand All @@ -533,7 +533,6 @@ func writeRocksDB(
}

kv.Key.Key = it.UnsafeKey()
kv.Key.Timestamp.WallTime = walltime
kv.Value = it.UnsafeValue()

if err := sst.Add(kv); err != nil {
Expand Down

0 comments on commit 4969e28

Please sign in to comment.