1
0
mirror of https://github.com/minio/minio.git synced 2025-04-01 10:13:42 -04:00

7 Commits

Author SHA1 Message Date
Harshavardhana
d864e00e24 posix: Deprecate custom removeAll/mkdirAll implementations. ()
Since go1.8 os.RemoveAll and os.MkdirAll both support long
path names i.e UNC path on windows. The code we are carrying
was directly borrowed from `pkg/os` package and doesn't need
to be in our repo anymore. As a side affect this also
addresses our codecoverage issue.

Refer 
2017-08-12 19:25:43 -07:00
Aditya Manthramurthy
986aa8fabf Bypass network in lock requests to local server ()
This makes lock RPCs similar to other RPCs where requests to the local
server bypass the network. Requests to the local lock-subsystem may
bypass the network layer and directly access the locking
data-structures.

This incidentally fixes .
2017-06-05 12:25:04 -07:00
Harshavardhana
1b1b9e4801 lock/rpc: change rpcPath to be called serviceEndpoint. ()
This is a cleanup to ensure proper naming.
2017-04-11 10:25:21 -07:00
Bala FA
1c97dcb10a Add UTCNow() function. ()
This patch adds UTCNow() function which returns current UTC time.

This is equivalent of UTCNow() == time.Now().UTC()
2017-03-18 11:28:41 -07:00
Harshavardhana
fa8ea41cd9 lock/instrumentation: Cleanup and print in user friendly form. () 2016-10-11 00:50:27 -07:00
Frank
6e8f3224c5 Test coverage for lock rpc server ()
* Add test coverage for removeEntry and removeEntryIfExists
* Initial test framework for Lock/Unlock functionality
* Add clarification comments
* Add test coverage code for RLock() and RUnlock()
* Add test coverage for Expired() function
* Have all lock-rpc-server test functions start with the same prefix
* Properly initialize JWT security token
2016-10-10 10:11:29 -07:00
Harshavardhana
113b93346b lock: Make some cleanup and moving the code around. ()
This patch just avoids lot of ifs and inverts some logic.
2016-09-19 13:14:55 -07:00