diff --git a/cmd/mongo/oplog_replay.go b/cmd/mongo/oplog_replay.go index 5fca41ea8..72e76d15e 100644 --- a/cmd/mongo/oplog_replay.go +++ b/cmd/mongo/oplog_replay.go @@ -3,9 +3,6 @@ package mongo import ( "context" "encoding/json" - "os" - "syscall" - "github.com/spf13/cobra" "github.com/wal-g/tracelog" "github.com/wal-g/wal-g/internal" @@ -16,6 +13,8 @@ import ( "github.com/wal-g/wal-g/internal/databases/mongo/oplog" "github.com/wal-g/wal-g/internal/databases/mongo/stages" "github.com/wal-g/wal-g/utility" + "os" + "syscall" ) const LatestBackupString = "LATEST_BACKUP" diff --git a/main/mongo/Dockerfile b/main/mongo/Dockerfile deleted file mode 100644 index 8e5854d6a..000000000 --- a/main/mongo/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM debian:bookworm - -RUN set -x \ - && apt-get update \ - && apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl; - -#RUN curl -LO https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2004-x86_64-100.5.4.tgz \ -# && tar -zxvf mongodb-database-tools-ubuntu2004-x86_64-100.5.4.tgz \ -# && cp -r ./mongodb-database-tools-ubuntu2004-x86_64-100.5.4/bin/* /bin/ ; - -COPY wal-g /bin/wal-g - -ENTRYPOINT [ "/bin/wal-g" ] \ No newline at end of file diff --git a/pkg/storages/fs/folder.go b/pkg/storages/fs/folder.go index db357a2fe..d1987f49b 100644 --- a/pkg/storages/fs/folder.go +++ b/pkg/storages/fs/folder.go @@ -92,7 +92,6 @@ func (folder *Folder) Exists(objectRelativePath string) (bool, error) { func (folder *Folder) GetSubFolder(subFolderRelativePath string) storage.Folder { sf := NewFolder(folder.rootPath, path.Join(folder.subpath, subFolderRelativePath)) - fmt.Println("---------------", sf) _ = sf.EnsureExists() // This is something unusual when we cannot be sure that our subfolder exists in FS