fixed bugs
This commit is contained in:
parent
57fc14d2f4
commit
e135bdde99
|
@ -106,7 +106,7 @@ func (store *LimitedStore) ensureSpace(size int64) error {
|
||||||
|
|
||||||
// Forward traversal through the
|
// Forward traversal through the
|
||||||
// uploads in terms of size, biggest upload first
|
// uploads in terms of size, biggest upload first
|
||||||
for _,k := sorted_uploads {
|
for _,k := range sorted_uploads {
|
||||||
id := k.key
|
id := k.key
|
||||||
if err := store.terminate(id); err != nil {
|
if err := store.terminate(id); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -116,7 +116,6 @@ func (store *LimitedStore) ensureSpace(size int64) error {
|
||||||
// Enough space has been freed to store the new upload
|
// Enough space has been freed to store the new upload
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
j--
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue