fixed index
This commit is contained in:
parent
06be13f200
commit
c2e521e518
|
@ -106,7 +106,7 @@ func (store *LimitedStore) ensureSpace(size int64) error {
|
||||||
|
|
||||||
// Reverse traversal through the
|
// Reverse traversal through the
|
||||||
// uploads in terms of size, biggest upload first
|
// uploads in terms of size, biggest upload first
|
||||||
j := len(store.uploads)
|
j := len(store.uploads)-1
|
||||||
for j >= 0 {
|
for j >= 0 {
|
||||||
id := sorted_uploads[j].key
|
id := sorted_uploads[j].key
|
||||||
if err := store.terminate(id); err != nil {
|
if err := store.terminate(id); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue