summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2009-08-06 13:16:01 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2009-08-06 13:16:01 -0700
commita26ba73fb5040383c27872997bc07ab0c2006459 (patch)
treec68d03fd60f5a46456019ceeecc64217f7467283 /lib
parent0565e8c39894b059191cfaff2176f758141ffe3b (diff)
downloadds-a26ba73fb5040383c27872997bc07ab0c2006459.tar.gz
ds-a26ba73fb5040383c27872997bc07ab0c2006459.tar.xz
ds-a26ba73fb5040383c27872997bc07ab0c2006459.zip
509472 db2index all does not reindex all the db backends correctly
db2index all (internally, called upgradedb) reads through the main db id2entry.db# and reindex all the associated indexed attributes. The reindex borrows the import code where the entry id is newly assigned. The new entry id's are connective. On the other hand, entry id's of the entries in the db to be reindexed are not. The borrowed import code assumes the entry id and the index of the fifo are tightly coupled and the timing when the writing to and reading from the fifo are calculated based upon the assumption. The assumption should have been revised so that the entry id which is available up to is kept in ready_EID in the job structure and entry id from each entry (entry->ep_id) is compared with ready_EID instead of ready_ID that holds the sequential number. Additionally, I eliminated unused variable "shift" from import_fifo_fetch. Also, _dblayer_delete_instance_dir cleans up files and directories, recursively.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions