change directory objects to never create new versions (#17109)

This commit is contained in:
Harshavardhana
2023-05-02 16:09:33 -07:00
committed by GitHub
parent 0ec722bc54
commit b53376a3a4
9 changed files with 74 additions and 40 deletions

View File

@@ -1031,6 +1031,10 @@ func decodeDirObject(object string) string {
return object
}
func isDirObject(object string) bool {
return HasSuffix(object, globalDirSuffix)
}
// Helper method to return total number of nodes in cluster
func totalNodeCount() uint64 {
peers, _ := globalEndpoints.peers()