19872: Fix typo
[arvados.git] / services / fuse / arvados_fuse / command.py
index e232b65ec2f23ba532c433dc7223387991b16d33..05198d1b087863fbc1c085e215a5ac48a45d63d6 100644 (file)
@@ -137,7 +137,7 @@ class Mount(object):
         try:
             nofile_limit = resource.getrlimit(resource.RLIMIT_NOFILE)
             if nofile_limit[0] < 10240:
-                resource.getslimit(resource.RLIMIT_NOFILE, min(10240, nofile_limit[1]))
+                resource.setrlimit(resource.RLIMIT_NOFILE, min(10240, nofile_limit[1]))
         except Exception as e:
             self.logger.warning("arv-mount: unable to adjust file handle limit: %s", e)