unify single-node and distributed namespace locking (#2401)

This commit is contained in:
Krishnan Parthasarathi
2016-08-10 13:08:11 -07:00
committed by Harshavardhana
parent b7c169d71d
commit b0f3f94163
6 changed files with 89 additions and 61 deletions

View File

@@ -45,7 +45,8 @@ import (
// Tests should initNSLock only once.
func init() {
// Initialize name space lock.
initNSLock()
isDist := false
initNSLock(isDist)
}
// TestErrHandler - Golang Testing.T and Testing.B, and gocheck.C satisfy this interface.