fixed index

This commit is contained in:
anirudt 2015-11-21 09:20:32 +05:30
parent 06be13f200
commit c2e521e518
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ func (store *LimitedStore) ensureSpace(size int64) error {
// Reverse traversal through the
// uploads in terms of size, biggest upload first
j := len(store.uploads)
j := len(store.uploads)-1
for j >= 0 {
id := sorted_uploads[j].key
if err := store.terminate(id); err != nil {