diff options
author | Peter Portante <peter.portante@redhat.com> | 2012-10-19 01:03:00 -0400 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-10-25 15:04:17 -0700 |
commit | 4f6aeb63d380f726b185bc25db1e50093b3119b3 (patch) | |
tree | 2277917f4e8019391e85da0388d756c084a84eaa /.unittests | |
parent | 3ab5404fab2a26399cb6a3a58d8930378e4ccb23 (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
diff --git a/.unittests b/.unittests index 5be925d5829..d13fd45a368 100755 --- a/.unittests +++ b/.unittests @@ -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 - |