diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-07-10 23:16:06 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-07-10 23:16:06 -0700 |
| commit | d013d6d9680296ba13c3f0da09f3bb3ae8550828 (patch) | |
| tree | b17792c1a77e0c2fdd07b371da64ca5a14a62f75 | |
| parent | 3d624d1e16a88840d8c4c87214ff3afd8c30db7f (diff) | |
| download | seaweedfs-d013d6d9680296ba13c3f0da09f3bb3ae8550828.tar.xz seaweedfs-d013d6d9680296ba13c3f0da09f3bb3ae8550828.zip | |
shell: volume.fsck "reallyDeleteFromVolume" should send padded file ids to delete
fix https://github.com/chrislusf/seaweedfs/issues/2188
| -rw-r--r-- | weed/shell/command_volume_fsck.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.go index 64389fdb5..0b40cfb7c 100644 --- a/weed/shell/command_volume_fsck.go +++ b/weed/shell/command_volume_fsck.go @@ -206,7 +206,7 @@ func (c *commandVolumeFsck) findExtraChunksInVolumeServers(volumeIdToVInfo map[u if verbose { for _, fid := range orphanFileIds { - fmt.Fprintf(writer, "%sxxxxxxxx\n", fid) + fmt.Fprintf(writer, "%s\n", fid) } } @@ -410,7 +410,7 @@ func (c *commandVolumeFsck) oneVolumeFileIdsSubtractFilerFileIds(tempFolder stri var orphanFileCount uint64 db.AscendingVisit(func(n needle_map.NeedleValue) error { // fmt.Printf("%d,%x\n", volumeId, n.Key) - orphanFileIds = append(orphanFileIds, fmt.Sprintf("%d,%s", volumeId, n.Key.String())) + orphanFileIds = append(orphanFileIds, fmt.Sprintf("%d,%s00000000", volumeId, n.Key.String())) orphanFileCount++ orphanDataSize += uint64(n.Size) return nil |
