Skip to content

Commit 4957330

Browse files
authored
Merge pull request #27 from timvaillancourt/db_to_common
Moving DB.py to Common/DB.py
2 parents c64197e + c65ca58 commit 4957330

File tree

7 files changed

+6
-8
lines changed

7 files changed

+6
-8
lines changed

MongoBackup/Backup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
from signal import signal, SIGINT, SIGTERM
99
from time import time
1010

11-
from Common import Lock
12-
from DB import DB
11+
from Common import DB, Lock
1312
from ShardingHandler import ShardingHandler
1413
from Mongodumper import Mongodumper
1514
from Oplog import OplogTailer, OplogResolver
File renamed without changes.

MongoBackup/Common/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
from DB import DB
12
from LocalCommand import LocalCommand
23
from Lock import Lock

MongoBackup/Mongodumper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from time import sleep
66

77

8-
from DB import DB
8+
from Common import DB
99
from Mongodump import Mongodump
1010
from ReplsetHandler import ReplsetHandler, ReplsetHandlerSharded
1111

MongoBackup/Oplog/Tail.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
from signal import signal, SIGINT, SIGTERM
1010
from time import sleep
1111

12-
13-
from MongoBackup.Common import LocalCommand
14-
from MongoBackup.DB import DB
12+
from MongoBackup.Common import DB, LocalCommand
1513

1614

1715
class OplogTail(Process):

MongoBackup/ReplsetHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from math import ceil
44
from time import mktime
55

6-
from DB import DB
6+
from Common import DB
77
from ShardingHandler import ShardingHandler
88

99

MongoBackup/ShardingHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from time import sleep
44

5-
from DB import DB
5+
from Common import DB
66

77

88
class ShardingHandler:

0 commit comments

Comments
 (0)