diff options
Diffstat (limited to 'weed/util/lock_table_test.go')
| -rw-r--r-- | weed/util/lock_table_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/util/lock_table_test.go b/weed/util/lock_table_test.go index 272e5672f..001fa0bdf 100644 --- a/weed/util/lock_table_test.go +++ b/weed/util/lock_table_test.go @@ -1,6 +1,7 @@ package util import ( + "fmt" "math/rand" "sync" "testing" @@ -26,14 +27,14 @@ func TestOrderedLock(t *testing.T) { lock := lt.AcquireLock("", key, lockType) // Lock acquired, perform some work - glog.V(4).Infof("ActiveLock %d acquired the lock.\n", lock.ID) + fmt.Printf("ActiveLock %d acquired lock %v\n", lock.ID, lockType) // Simulate some work time.Sleep(time.Duration(rand.Int31n(10)*10) * time.Millisecond) // Release the lock lt.ReleaseLock(key, lock) - glog.V(4).Infof("ActiveLock %d released the lock.\n", lock.ID) + fmt.Printf("ActiveLock %d released lock %v\n", lock.ID, lockType) }(i) } |
