Add a 'tryCatch' when modifying 'map0' in 'checkMap'v2.0-rc2
commit4155ef280867a6ccfe94d6f89cee4662ab24898f
authorRoger D. Peng [audrey] <rpeng@jhsph.edu>
Tue, 19 Aug 2008 13:33:43 +0000 (19 09:33 -0400)
committerRoger D. Peng [audrey] <rpeng@jhsph.edu>
Tue, 19 Aug 2008 13:40:20 +0000 (19 09:40 -0400)
treef6759903a15d56752a50271b8eade0cfd3629392
parentf4bcd5ea33574b5f37bb7a2c7663f2f193c414e8
Add a 'tryCatch' when modifying 'map0' in 'checkMap'

When there is a size change, we modify 'map' directly via the
'read_key_map' function.  But if there is an error at the C level then
'map' is left in an inconsistent state.  Therefore, in case of an error
we just return the original map (before modification).
R/filehash-DB1.R