diff options
author | Peter Portante <peter.portante@redhat.com> | 2012-10-19 01:03:00 -0400 |
---|---|---|
committer | Peter Portante <peter.portante@redhat.com> | 2013-04-29 16:35:55 -0400 |
commit | f82b16c95539a5ad2f3b6fd93d80ea1bc396ab9b (patch) | |
tree | 048d0a8548a82a8a478c40d079cc27f18f7f55ce /.unittests | |
parent | a226e39487f7f476970548d0abac752280c146cd (diff) |
Further reduce extended attribute reads/writes
More refactoring towards reducing the number of extended attribute
reads/writes to the file system. See BZ 868120:
http://bugzilla.redhat.com/show_bug.cgi?id=868120
Basically the redundant routines restore_object, restore_account and
restore_container have been collapsed to one routine, restore_metadata, which
will only write out metadata if the new metadata is different from what was
originally read.
Along with these changes come a set of unit tests for all the functions
related to the routines that are in this module in the call tree where
restore_metadata is invoked.
Change-Id: I957ee2f8646cbe6df4d4420d3bdfb1f6ac62bdd2
BUG: 868120
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Reviewed-on: http://review.gluster.org/4111
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Tested-by: Anand Avati <avati@redhat.com>
Diffstat (limited to '.unittests')
-rwxr-xr-x | .unittests | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,6 +1,5 @@ #!/bin/bash -cd swift/1.4.8/test/unit -nosetests --exe --with-coverage --cover-package plugins --cover-erase $@ -rm -f .coverage +cd swift/1.4.8/ +./.unittests cd - |