Fix for Istruncated set to true under certain conditions.

Optimizing List Objects by using binary sort to discard entries in cases
where prefix or marker is set.

Adding test coverage to ListObjects.

Adding benchmark to ListObjects.
This commit is contained in:
Karthic Rao
2016-03-17 06:00:22 +05:30
parent 407316c631
commit b55922effe
5 changed files with 725 additions and 49 deletions

View File

@@ -24,7 +24,6 @@ import (
"encoding/xml"
"math/rand"
"strconv"
"time"
"gopkg.in/check.v1"
)
@@ -216,7 +215,6 @@ func testPaging(c *check.C, create func() Filesystem) {
c.Assert(len(result.Objects), check.Equals, 1)
c.Assert(result.Prefixes[0], check.Equals, "this/is/also/")
}
time.Sleep(time.Second)
// check delimited results with delimiter without prefix
{