forked from TrueCloudLab/frostfs-node
[#1000] adm: Use default batch size for TraverseIterator()
Nothing is broken now, but will easily become if we change nnsMaxTokens, thus this change. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
4b13b85173
commit
abea258b65
1 changed files with 2 additions and 2 deletions
|
@ -177,12 +177,12 @@ func dumpCustomZoneHashes(cmd *cobra.Command, nnsHash util.Uint160, zone string,
|
||||||
_ = inv.TerminateSession(sessionID)
|
_ = inv.TerminateSession(sessionID)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
items, err := inv.TraverseIterator(sessionID, &iter, nnsMaxTokens)
|
items, err := inv.TraverseIterator(sessionID, &iter, 0)
|
||||||
for err == nil && len(items) != 0 {
|
for err == nil && len(items) != 0 {
|
||||||
for i := range items {
|
for i := range items {
|
||||||
processItem(items[i])
|
processItem(items[i])
|
||||||
}
|
}
|
||||||
items, err = inv.TraverseIterator(sessionID, &iter, nnsMaxTokens)
|
items, err = inv.TraverseIterator(sessionID, &iter, 0)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error during NNS domains iteration: %w", err)
|
return fmt.Errorf("error during NNS domains iteration: %w", err)
|
||||||
|
|
Loading…
Reference in a new issue