diff --git a/pkg/meta/load_dump_test.go b/pkg/meta/load_dump_test.go index 669f063c1874..10cdb4446564 100644 --- a/pkg/meta/load_dump_test.go +++ b/pkg/meta/load_dump_test.go @@ -204,7 +204,7 @@ func testLoad(t *testing.T, uri, fname string) Meta { if st := m.GetXattr(ctx, 2, "k", &value); st != 0 || string(value) != "v" { t.Fatalf("getxattr: %s %v", st, value) } - if st := m.GetXattr(ctx, 3, "dk", &value); st != 0 || string(value) != "果汁" { + if st := m.GetXattr(ctx, 3, "dk", &value); st != 0 || string(value) != "果汁%25" { t.Fatalf("getxattr: %s %v", st, value) } @@ -284,6 +284,7 @@ func testLoadDump(t *testing.T, name, addr string) { func TestLoadDump(t *testing.T) { //skip mutate testLoadDump(t, "redis", "redis://127.0.0.1/10") testLoadDump(t, "mysql", "mysql://root:@/dev") + testLoadDump(t, "badger", "badger://jfs-load-dump") testLoadDump(t, "tikv", "tikv://127.0.0.1:2379/jfs-load-dump") } diff --git a/pkg/meta/metadata-sub.sample b/pkg/meta/metadata-sub.sample index 529305ce388d..6d912697c134 100644 --- a/pkg/meta/metadata-sub.sample +++ b/pkg/meta/metadata-sub.sample @@ -37,7 +37,7 @@ }, "FSTree": { "attr": {"inode":3,"type":"directory","mode":493,"uid":501,"gid":20,"atime":1623746591,"mtime":1623746610,"ctime":1623746610,"atimensec":959224111,"mtimensec":959224111,"ctimensec":959224111,"nlink":2,"length":0}, - "xattrs": [{"name":"dk","value":"果汁"}], + "xattrs": [{"name":"dk","value":"果汁%2525"}], "entries": { "big": { "attr": {"inode":6,"type":"regular","mode":420,"uid":501,"gid":0,"atime":1637150857,"mtime":1637150858,"ctime":1637150878,"atimensec":961503222,"mtimensec":961503222,"ctimensec":961503222,"nlink":1,"length":104857600}, diff --git a/pkg/meta/metadata.sample b/pkg/meta/metadata.sample index 11d882cb87fe..a8f5fcd13d98 100644 --- a/pkg/meta/metadata.sample +++ b/pkg/meta/metadata.sample @@ -60,7 +60,7 @@ }, "d1": { "attr": {"inode":3,"type":"directory","mode":493,"uid":501,"gid":20,"atime":1623746591,"mtime":1623746610,"ctime":1623746610,"atimensec":959224111,"mtimensec":959224111,"ctimensec":959224111,"nlink":2,"length":0}, - "xattrs": [{"name":"dk","value":"果汁"}], + "xattrs": [{"name":"dk","value":"果汁%2525"}], "entries": { "big": { "attr": {"inode":6,"type":"regular","mode":420,"uid":501,"gid":0,"atime":1637150857,"mtime":1637150858,"ctime":1637150878,"atimensec":961503222,"mtimensec":961503222,"ctimensec":961503222,"nlink":1,"length":104857600},