• Dmitry Kazakov's avatar
    Fix ConcurrentMap::migrationInProcess() to handle initialization value (0) properly · 2ffdc5b0
    Dmitry Kazakov authored
    Job coordinator of the table may have three states:
    
    1) jobCoordinator == 0: the table was initialized, but no migration
       has ever been started for this table
    2) jobCoordinator > 1: a table migration is in progress right now. The
       caller should join *jobCoordinator to help finishing the migration.
    3) jobCoordinator == 1: the table migration has been finished. It means
       that the table doesn't have any values in it anymore.
    
    The patch actually fixes the map to consider case 1 as a situation, when
    there is no migration.
    
    CCBUG:411081
    2ffdc5b0
Name
Last commit
Last update
..
basicflakes Loading commit data...
brush Loading commit data...
color Loading commit data...
command Loading commit data...
flake Loading commit data...
global Loading commit data...
image Loading commit data...
impex Loading commit data...
koplugin Loading commit data...
libkis Loading commit data...
libqml Loading commit data...
metadata Loading commit data...
odf Loading commit data...
pigment Loading commit data...
psd Loading commit data...
store Loading commit data...
ui Loading commit data...
version Loading commit data...
widgets Loading commit data...
widgetutils Loading commit data...
.krazy Loading commit data...
CMakeLists.txt Loading commit data...
Mainpage.dox Loading commit data...