Revision 4c32a8bd daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
845 | 845 |
|
846 | 846 |
""" |
847 | 847 |
if options.mlock: |
848 |
utils.Mlockall() |
|
849 | 848 |
request_executor_class = MlockallRequestExecutor |
849 |
try: |
|
850 |
utils.Mlockall() |
|
851 |
except errors.NoCtypesError: |
|
852 |
logging.warning("Cannot set memory lock, ctypes module not found") |
|
853 |
request_executor_class = http.server.HttpServerRequestExecutor |
|
850 | 854 |
else: |
851 | 855 |
request_executor_class = http.server.HttpServerRequestExecutor |
852 | 856 |
|
Also available in: Unified diff