[SSSD] [PATCH 0/1] Simplify writing update functions
Simo Sorce
simo at redhat.com
Wed Nov 14 14:17:53 UTC 2012
While approaching the problem of updating the DB after a patch I am working
on I noticed that we do have a lot of biolerplate code in there that could
very simply be tucked into 2 helper functions, simplifying writing upgrade
functions and making it less likely a typo or copy&paste error will create
issues with version numbers.
I love the 425 deletions :-)
I tried to have a light hand in changing existing code to avoid introducing
bugs but I have added an example skeleton so that future upgrade functions
can stop using a tmp_ctx memory context and just use the new upgrade_ctx as
their local memory context.
Simo Sorce (1):
Simplify writing db update functions
src/db/sysdb_upgrade.c | 621 +++++++++++++++---------------------------------
1 files changed, 196 insertions(+), 425 deletions(-)
More information about the sssd-devel
mailing list