[SERVER-13896] Replace logOp() with a more operation-aware observer interface Created: 09/May/14  Updated: 18/Sep/15  Resolved: 11/Mar/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 3.1.0

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-15192 Make all logOp listeners rollback-safe Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Rather than having a single logOp() function for all types of data and metadata operations that might be observed, we will build an observer interface for such operations.

Instead of logOp("i", ...) there will be OpObserver::onInsert(...), e.g.

There will be one instance of the observer in the database server, with the observation actions statically encoded. This ticket is not for allowing the dynamic registration of data and meta-data event observers.



 Comments   
Comment by Githook User [ 11/Mar/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-13896 fix dbtest repl
Branch: master
https://github.com/mongodb/mongo/commit/346c9c7f9c802fb57931a62b2f2e402f07c8c805

Comment by Githook User [ 11/Mar/15 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-13896 Replace logOp() with a more operation-aware observer interface
Branch: master
https://github.com/mongodb/mongo/commit/ddc1a7f9c3303f8ef685792ec9e5d144fb1983eb

Comment by Githook User [ 12/May/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13896 Stop passing unconsulted "fullObj" parameter to logOp().
Branch: master
https://github.com/mongodb/mongo/commit/a2ca3a5dc694e17525717f0e78024cc5bb9e16ae

Comment by Githook User [ 12/May/14 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-13896 No longer pass extraneous arguments to logOpForDbHash().
Branch: master
https://github.com/mongodb/mongo/commit/251d119e685a89d7c7b494d9c6c0f0e3323849ba

Generated at Thu Feb 08 03:33:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.