Skip to content

Commit

Permalink
added "now := time.Now()"
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjiaswe authored Jul 20, 2018
1 parent 7f421ef commit 143fc4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mvcc/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ func (b *backend) Defrag() error {
}

func (b *backend) defrag() error {
now := time.Now()

// TODO: make this non-blocking?
// lock batchTx to ensure nobody is using previous tx, and then
// close previous ongoing tx.
Expand Down

1 comment on commit 143fc4c

@royal50911
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go doesnt like tab, so it failed at checking fmt . please, update this bug.

gofmt checking failed:
mvcc/backend/backend.go
diff -u mvcc/backend/backend.go.orig mvcc/backend/backend.go
--- mvcc/backend/backend.go.orig 2018-07-26 09:36:28.678542205 -0700
+++ mvcc/backend/backend.go 2018-07-26 09:36:28.682542306 -0700
@@ -292,7 +292,7 @@

func (b *backend) defrag() error {
now := time.Now()

  • // TODO: make this non-blocking?
    // lock batchTx to ensure nobody is using previous tx, and then
    // close previous ongoing tx.

Please sign in to comment.