mirror of
https://github.com/minio/minio.git
synced 2026-11-05 08:30:17 +00:00
server: Add more elaborate startup messages. (#2731)
These messages based on our prep stage during XL and prints more informative message regarding drive information. This change also does a much needed refactoring.
This commit is contained in:
1 parent
63a7ca1af0
commit
6494b77d41
61 files changed
+1505
-1340
No files matched your search
@@ -105,9 +105,6 @@ func isLocalStorage(networkPath string) bool {
|
||||
// Depending on the disk type network or local, initialize storage API.
|
||||
func newStorageAPI(disk string) (storage StorageAPI, err error) {
|
||||
if isLocalStorage(disk) {
|
||||
if idx := strings.LastIndex(disk, ":"); idx != -1 {
|
||||
return newPosix(disk[idx+1:])
|
||||
}
|
||||
return newPosix(disk)
|
||||
}
|
||||
return newRPCClient(disk)
|
||||
|
||||
Reference in new issue
Block a user