• Oran Agra's avatar
    Run active defrag while blocked / loading (#7726) · 9ef8d2f6
    Oran Agra authored
    During long running scripts or loading RDB/AOF, we may need to do some
    defragging. Since processEventsWhileBlocked is called periodically at
    unknown intervals, and many cron jobs either depend on run_with_period
    (including active defrag), or rely on being called at server.hz rate
    (i.e. active defrag knows ho much time to run by looking at server.hz),
    the whileBlockedCron may have to run a loop triggering the cron jobs in it
    (currently only active defrag) several times.
    
    Other changes:
    - Adding a test for defrag during aof loading.
    - Changing key-load-delay config to take negative values for fractions
      of a microsecond sleep
    9ef8d2f6
util.tcl 13 KB