clientv3: Renaming SortByCreatedRev to maintain consistency.

Renamed SortByCreatedRev to SortByCreateRevision to be consistent
with the naming used for SortByModRevision.
This commit is contained in:
Ajit Yagaty
2016-03-22 17:25:20 -07:00
parent 606889a002
commit 2bb417bfff
5 changed files with 7 additions and 7 deletions

View File

@ -148,11 +148,11 @@ func TestKVRange(t *testing.T) {
{Key: []byte("fop"), Value: nil, CreateRevision: 9, ModRevision: 9, Version: 1},
},
},
// range all with SortByCreatedRev, SortDescend
// range all with SortByCreateRevision, SortDescend
{
"a", "x",
0,
[]clientv3.OpOption{clientv3.WithSort(clientv3.SortByCreatedRev, clientv3.SortDescend)},
[]clientv3.OpOption{clientv3.WithSort(clientv3.SortByCreateRevision, clientv3.SortDescend)},
[]*storagepb.KeyValue{
{Key: []byte("fop"), Value: nil, CreateRevision: 9, ModRevision: 9, Version: 1},