~ubuntu-branches/ubuntu/wily/glusterfs/wily

« back to all changes in this revision

Viewing changes to xlators/cluster/afr/src/afr-common.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2011-03-15 21:14:50 UTC
  • mfrom: (1.3.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110315211450-5iekpirgkdntccne
Tags: 3.1.3-1
* New upstream release.
  - glusterfs-volgen and glusterfs-defrag have been removed.
* Suggest nfs-common with the glusterfs-server for native NFS support.
  Closes: #614988
* Migrate to dh_python2.
  Closes: #616826

Show diffs side-by-side

added added

removed removed

Lines of Context:
852
852
                                local->cont.lookup.postparent          = *postparent;
853
853
 
854
854
                                *lookup_buf = *buf;
855
 
 
856
 
                                if (priv->read_child >= 0) {
857
 
                                        afr_set_read_child (this,
858
 
                                                            local->cont.lookup.inode,
859
 
                                                            priv->read_child);
860
 
                                } else {
861
 
                                        afr_set_read_child (this,
862
 
                                                            local->cont.lookup.inode,
863
 
                                                            local->read_child_index);
864
 
                                }
865
855
                        }
866
856
 
867
857
                }
980
970
                                local->cont.lookup.postparent          = *postparent;
981
971
 
982
972
                                *lookup_buf = *buf;
983
 
 
984
 
                                if (priv->read_child >= 0) {
985
 
                                        afr_set_read_child (this,
986
 
                                                            local->cont.lookup.inode,
987
 
                                                            priv->read_child);
988
 
                                } else {
989
 
                                        afr_set_read_child (this,
990
 
                                                            local->cont.lookup.inode,
991
 
                                                            local->read_child_index);
992
 
                                }
993
973
                        }
994
974
 
995
975
                }
2572
2552
                                "going online.", ((xlator_t *)data)->name);
2573
2553
 
2574
2554
                        default_notify (this, event, data);
 
2555
                } else {
 
2556
                        default_notify (this, GF_EVENT_CHILD_MODIFIED, data);
2575
2557
                }
2576
2558
 
2577
2559
                break;
2602
2584
                                "until atleast one of them comes back up.");
2603
2585
 
2604
2586
                        default_notify (this, event, data);
 
2587
                } else {
 
2588
                        default_notify (this, GF_EVENT_CHILD_MODIFIED, data);
2605
2589
                }
2606
2590
 
2607
2591
                break;