[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] nvm.experiment.database-management
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] nvm.experiment.database-management |
Date: |
Wed, 19 May 2010 05:38:51 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) |
Thomas Keller <address@hidden> writes:
> Am 18.05.2010 14:41, schrieb Thomas Keller:
>> Am 18.05.2010 14:07, schrieb Thomas Keller:
>>> Am 18.05.2010 13:46, schrieb Stephen Leake:
>>>> Perhaps this is one reason the dbcache was a member of the application
>>>> class?
>>>
>>> Well, it should not - unless its considered bad practise to store
>>> shared_ptr's in a static map - I found a couple of references with
>>> similar problems, but no quick explanation or solution. I need to
>>> investigate this further.
>>
>> This is the problem when I just copy over the existing code and don't
>> think for myself - the issue was the reference to the shared_ptr in the
>> database constructor which rendered the reference counting of shared_ptr
>> useless. I changed that in 35cfbc0b277b7c0a5e3a401688078cee11dc20ad and
>> mtn no longer crashes for me. Can you confirm that?
>
> Forget this "fix" -
Well, it did fix the crash. For me.
> it won't cache database_impl instances at all.
I don't see why not; can you explain?
> I'll look further into the issue tonight.
Ok.
--
-- Stephe