From 1fe6e89c0752458b18acc343899323a88c44015d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=B4=E5=A8=83=E9=85=B1?= Date: Wed, 24 Aug 2016 17:18:02 +0800 Subject: [PATCH] fix log RLIMIT_NOFILE --- db_transfer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/db_transfer.py b/db_transfer.py index 3c567db..f725435 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -189,6 +189,7 @@ class TransferBase(object): socket.setdefaulttimeout(timeout) last_rows = [] db_instance = obj() + ServerPool.get_instance() import resource logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE)) try: