Commits

Anonymous committed 49e6227

fix missing metadata after backup-restore
use object's non-updated metadata during restore, because it doesn't have an updated one yet

  • Participants
  • Parent commits 763a139

Comments (0)

Files changed (1)

src/riak_backup.erl

                   end,
               RObj = riak_object:update_metadata(RObj0,
                        dict:store("no_update",no_update,
-                         riak_object:get_update_metadata(RObj0))),
+                         hd(riak_object:get_metadatas(RObj0)))),
               PutRes = Client:put(RObj,1,1,900000),
               {continue, {Bucket,Key,PutRes}}
       end),