Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SharedDataDirCount (0.11 sec)

  1. cmd/xl-storage-format-v2.go

    			if freeVersion, toFree := ver.ObjectV2.InitFreeVersion(fi); toFree {
    				err = x.addVersion(freeVersion)
    			}
    		}
    
    		if fi.Deleted {
    			err = x.addVersion(ventry)
    		}
    		if x.SharedDataDirCount(ver.ObjectV2.VersionID, ver.ObjectV2.DataDir) > 0 {
    			// Found that another version references the same dataDir
    			// we shouldn't remove it, and only remove the version instead
    			return "", nil
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2_test.go

    		fileInfos = append(fileInfos, fi)
    	}
    
    	for i, tc := range testCases {
    		_, version, err := xl.findVersion(uuid.MustParse(tc.versionID))
    		failOnErr(i+1, err)
    		if got := xl.SharedDataDirCount(version.getVersionID(), version.ObjectV2.DataDir); got != tc.shares {
    			t.Fatalf("Test %d: For %#v, expected sharers of data directory %d got %d", i+1, version.ObjectV2.VersionID, tc.shares, got)
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top