Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] disable commit info.
[CDO] disable commit info. [message #1251640] Thu, 20 February 2014 12:42 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Eike,

I have a custom commit info handler, which persist self-managed commit
information. I install this handler, and it's all fine and working.
However the cdo_commit_infos is also populated in the DB. Can I somehow
turn of the persistence of the cdo_commit_infos table, while keeping my
own commit info handler?

Thank You,
Christophe
Re: [CDO] disable commit info. [message #1251785 is a reply to message #1251640] Thu, 20 February 2014 15:47 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 20.02.2014 13:42, schrieb Christophe Bouhier:
> Hi Eike,
>
> I have a custom commit info handler, which persist self-managed commit information. I install this handler, and it's
> all fine and working.
> However the cdo_commit_infos is also populated in the DB. Can I somehow turn of the persistence of the
> cdo_commit_infos table, while keeping my own commit info handler?
I don't think there's a switch already but it should be easy to introduce a new repo or store level config property to
make it configurable. Would you like to contribute a patch for this?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] disable commit info. [message #1252657 is a reply to message #1251785] Fri, 21 February 2014 13:00 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 20-02-14 16:47, Eike Stepper wrote:
> Am 20.02.2014 13:42, schrieb Christophe Bouhier:
>> Hi Eike,
>>
>> I have a custom commit info handler, which persist self-managed commit
>> information. I install this handler, and it's all fine and working.
>> However the cdo_commit_infos is also populated in the DB. Can I
>> somehow turn of the persistence of the cdo_commit_infos table, while
>> keeping my own commit info handler?
> I don't think there's a switch already but it should be easy to
> introduce a new repo or store level config property to make it
> configurable. Would you like to contribute a patch for this?
Yes.

just to clarify. If I don't install a CommitInfoHandler, would CDO still
persist commit infos?

>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
Re: [CDO] disable commit info. [message #1252672 is a reply to message #1252657] Fri, 21 February 2014 13:15 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 21.02.2014 14:00, schrieb Christophe Bouhier:
> On 20-02-14 16:47, Eike Stepper wrote:
>> Am 20.02.2014 13:42, schrieb Christophe Bouhier:
>>> Hi Eike,
>>>
>>> I have a custom commit info handler, which persist self-managed commit
>>> information. I install this handler, and it's all fine and working.
>>> However the cdo_commit_infos is also populated in the DB. Can I
>>> somehow turn of the persistence of the cdo_commit_infos table, while
>>> keeping my own commit info handler?
>> I don't think there's a switch already but it should be easy to
>> introduce a new repo or store level config property to make it
>> configurable. Would you like to contribute a patch for this?
> Yes.
>
> just to clarify. If I don't install a CommitInfoHandler, would CDO still persist commit infos?
Yes. You can find the call in org.eclipse.emf.cdo.spi.server.StoreAccessor.doWrite(InternalCommitContext, OMMonitor),
the super class of DBStoreAccessor.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] disable commit info. [message #1252726 is a reply to message #1252672] Fri, 21 February 2014 14:38 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 21-02-14 14:15, Eike Stepper wrote:
> Am 21.02.2014 14:00, schrieb Christophe Bouhier:
>> On 20-02-14 16:47, Eike Stepper wrote:
>>> Am 20.02.2014 13:42, schrieb Christophe Bouhier:
>>>> Hi Eike,
>>>>
>>>> I have a custom commit info handler, which persist self-managed commit
>>>> information. I install this handler, and it's all fine and working.
>>>> However the cdo_commit_infos is also populated in the DB. Can I
>>>> somehow turn of the persistence of the cdo_commit_infos table, while
>>>> keeping my own commit info handler?
>>> I don't think there's a switch already but it should be easy to
>>> introduce a new repo or store level config property to make it
>>> configurable. Would you like to contribute a patch for this?
>> Yes.
>>
>> just to clarify. If I don't install a CommitInfoHandler, would CDO
>> still persist commit infos?
> Yes. You can find the call in
> org.eclipse.emf.cdo.spi.server.StoreAccessor.doWrite(InternalCommitContext,
> OMMonitor), the super class of DBStoreAccessor.
>
Thanks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=428747


> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
Previous Topic:EMF Validation,
Next Topic:Model Migration
Goto Forum:
  


Current Time: Fri Apr 19 01:57:43 GMT 2024

Powered by FUDForum. Page generated in 0.02313 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top