wiki:FDORfc58

FDO RFC 58 - Keep It after One Long Transaction is Committed or Rollbacked

This page contains a request for comments document (RFC) for the FDO Open Source project. More FDO RFCs can be found on the RFCs page.

Status

RFC Template Version1.1
Submission DateMarch 29, 2011
Last ModifiedGreg Boone, April 21, 2011
AuthorLeaf Li
RFC StatusAdopted
Implementation StatusIn Progress
Proposed Milestone3.7.0.0
Assigned PSC guide(s)Orest Halustchak, Greg Boone
Voting HistoryApril 21, 2011
+1Orest Halustchak, Greg Boone, Jackie Ng, Haris Kurtagic
+0
-0
-1

Overview

The RFC is to add an extra parameter to FdoICommitLongTransaction and FdoIRollbackLongTransaction commands to indicate whether to remove the long transaction after it is committed or rollbacked successfully or to keep it.

Motivation

Currently after executing FdoICommitLongTransaction command successfully, FDO will merge changes in this long transaction to the parent version and delete the child version. FDO will similarly drop changes in a long transaction and remove it after executing FdoIRollbackLongTransaction command successfully. Based on feedback from ArcSDE users, they would like to see a merge/drop operation that does not remove the child. They want to keep using the child version to reuse for further editing work.

Proposed Solution

The proposed solution is to add an extra parameter to FdoICommitLongTransaction and FdoIRollbackLongTransaction commands to indicate whether to keep the long transaction in the version graph and not remove it. Its default value is false. It means removing the long transaction from version graph after it is committed or rollbacked. Changes to class FdoICommitLongTransaction and FdoIRollbackLongTransaction are as follows.

class FdoICommitLongTransaction: public FdoIFeatureCommand
{
public:
    /// \brief
    /// Returns true if keeping the long transaction after it is committed.
    /// Returns false if remove the long transaction after it is committed.
    /// Default value for KeepLongTransaction is false.
    /// 
    /// \return
    /// Returns true if keeping the long transaction after it is committed.
    /// 
    FDO_API virtual FdoBoolean GetKeepLongTransaction () = 0;

    /// \brief
    /// Sets whether to keep the long transaction after it is committed.
    /// Default value for KeepLongTransaction is false.
    ///
    /// \param value 
    /// Input one boolean value to indicate whether to keep the committed
    /// long transaction
    /// 
    /// \return
    /// Returns nothing
    /// 
    FDO_API virtual void SetKeepLongTransaction (FdoBoolean value) = 0;
    ......
};

class FdoIRollbackLongTransaction : public FdoIFeatureCommand
{
public:
    /// \brief
    /// Returns true if keeping the long transaction after it is rollbacked.
    /// Returns false if remove the long transaction after it is rollbacked.
    /// Default value for KeepLongTransaction is false.
    /// 
    /// \return
    /// Returns true if keeping the long transaction after it is rollbacked.
    /// 
    FDO_API virtual FdoBoolean GetKeepLongTransaction () = 0;

    /// \brief
    /// Sets whether to keep the long transaction after it is rollbacked.
    /// Default value for KeepLongTransaction is false.
    ///
    /// \param value 
    /// Input one boolean value to indicate whether to keep the rollbacked
    /// long transaction
    /// 
    /// \return
    /// Returns nothing
    /// 
    FDO_API virtual void SetKeepLongTransaction (FdoBoolean value) = 0;
    ......
};

Implications

ArcSDE provider will be modified to support this extra parameter.

Test Plan

ArcSDE provider unit tests will be expanded to test the proposed enhancements defined above.

Funding/Resources

Autodesk to provide resources / funding

Last modified 7 years ago Last modified on Apr 21, 2011 8:43:15 AM