Skip to content

Commit

Permalink
Merge pull request #85 from jfontan/metadata-last-version
Browse files Browse the repository at this point in the history
siva: new library metadata should point to latest version
  • Loading branch information
jfontan committed Aug 23, 2019
2 parents 0972e27 + c17c4a4 commit 8493ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion siva/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newLibraryMetadata(
) (*libMetadata, error) {
m := &libMetadata{
ID: id,
CurrentVersion: 0,
CurrentVersion: -1,
fs: fs,
dirty: true,
}
Expand Down
2 changes: 1 addition & 1 deletion siva/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func TestMetadataLibraryWrite(t *testing.T) {

version, err = lib.Version()
require.NoError(err)
require.Equal(0, version)
require.Equal(-1, version)
require.Equal(borges.LibraryID("test"), lib.ID())

require.NoError(lib.SetVersion(1))
Expand Down

0 comments on commit 8493ff6

Please sign in to comment.