File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1448,6 +1448,7 @@ func init() {
1448
1448
}),
1449
1449
tool .OpenOptions (pebbleOpenOptionLockDir {pebbleToolFS }),
1450
1450
tool .WithDBExciseSpanFn (pebbleExciseSpanFn ),
1451
+ tool .WithDBRemoteStorageFn (pebbleRemoteStorageFn ),
1451
1452
)
1452
1453
debugPebbleCmd .AddCommand (pebbleTool .Commands ... )
1453
1454
f := debugPebbleCmd .PersistentFlags ()
@@ -1714,6 +1715,25 @@ func pebbleExciseSpanFn() (pebble.KeyRange, error) {
1714
1715
}, nil
1715
1716
}
1716
1717
1718
+ func pebbleRemoteStorageFn (uri string ) (remote.Storage , error ) {
1719
+ es , err := cloud .ExternalStorageFromURI (
1720
+ context .Background (),
1721
+ uri ,
1722
+ base.ExternalIODirConfig {},
1723
+ cluster .MakeClusterSettings (),
1724
+ nil , /* blobClientFactory: */
1725
+ username .PublicRoleName (),
1726
+ nil , /* db */
1727
+ nil , /* limiters */
1728
+ cloud .NilMetrics ,
1729
+ )
1730
+ if err != nil {
1731
+ return nil , err
1732
+ }
1733
+ wrapper := storage .MakeExternalStorageWrapper (context .Background (), es )
1734
+ return wrapper , nil
1735
+ }
1736
+
1717
1737
func pebbleCryptoInitializer (ctx context.Context ) {
1718
1738
var encryptedPaths []string
1719
1739
for _ , spec := range encryptionSpecs .Specs {
You can’t perform that action at this time.
0 commit comments